/*half star style in review section*/
.star-half {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  vertical-align: -0.125em;
  overflow: hidden;
}
.star-half i {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1em;
  line-height: 1;
}
.star-half-fill {
  width: 50%;
  overflow: hidden;
  white-space: nowrap;
}

.auth-card-wide { max-width: 720px; }
.auth-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
}
.auth-form-grid .auth-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.auth-discard { align-self: center; }

.auth-field select:focus {
    outline: none;
    border-color: #E89F71;
}

/* custom dropdown arrow */
.auth-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    background: #f8fafc;
}

.auth-field select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.auth-field select {
    width: 100%;
    height: 48px;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

@media (max-width: 767.98px) {
  .auth-form-grid {
    grid-template-columns: 1fr;
  }
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Portal pages — match Bundle theme */
.o_portal,
.o_portal_my_home {
  font-family: var(--font-body);
  color: var(--bundle-blue);
}

.o_portal h1,
.o_portal h2,
.o_portal h3,
.o_portal h4 {
  font-family: var(--font-heading);
  color: var(--bundle-blue);
}

.o_portal a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.o_portal a:hover {
  color: var(--bundle-red-hover);
}

.o_portal .card,
.o_portal .o_portal_my_home_kanban_card,
.o_portal .list-group-item {
  border: 1px solid rgba(17, 42, 70, 0.08);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.o_portal .card:hover,
.o_portal .o_portal_my_home_kanban_card:hover {
  border-color: var(--bundle-red);
  box-shadow: 0 4px 14px rgba(2, 8, 23, 0.08);
}

.o_portal .alert-info {
  background-color: rgba(239, 71, 37, 0.06);
  border: 1px solid rgba(239, 71, 37, 0.2);
  color: var(--bundle-blue);
}

.bundle_portal_wrap {
  font-family: var(--font-body);
  color: var(--text-dark);
}

.bundle_portal_title,
.o_portal_content h2,
.o_portal_content h3 {
  font-family: var(--font-heading);
  color: var(--bundle-blue);
  font-weight: 700;
}

 /*"Quotations to review" banner*/
.o_portal_my_home .alert,
.o_portal_content .alert {
  background: #fdf2f2;
  border: 1px solid rgba(239, 71, 37, 0.2);
  border-radius: 8px;
  color: var(--bundle-blue);
  font-family: var(--font-body);
}

.o_portal_my_home .alert a {
  color: var(--bundle-red);
  font-weight: 600;
  text-decoration: none;
}

/* Sales Orders / Invoices / Addresses / Security cards */
.o_portal_index_card > a {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.o_portal_index_card > a:hover {
  border-color: var(--bundle-red);
  box-shadow: 0 0 0 3px rgba(239, 71, 37, 0.12);
  text-decoration: none;
}

.o_portal_index_card h5 {
  font-family: var(--font-heading);
  color: var(--bundle-blue);
  font-weight: 600;
}

.o_portal_index_card p {
  font-family: var(--font-body);
  color: #64748b;
}

/* Sidebar profile card — name, company, address, contact, edit link */
.o_portal_content ~ div .mt-3 {
  font-family: var(--font-body);
}

.o_portal_content ~ div .mt-3 h5 {
  font-family: var(--font-heading);
  color: var(--bundle-blue);
  font-weight: 700;
  font-size: 1.15rem;
}

.o_portal_content ~ div .mt-3 .text-muted {
  font-family: var(--font-body);
  color: #64748b !important;
  font-size: 0.9rem;
}

.o_portal_content ~ div .mt-3 .o_portal_contact_img {
  border: 2px solid #e2e8f0;
  border-radius: 50%;
}

/* Address block */
.o_portal_my_details,
.o_portal_my_details address {
  font-family: var(--font-body);
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.o_portal_security_body i.fa {
  color: var(--bundle-red) !important;
}

.account-section .fa.fa-pencil {
    color: white !important;
}

.badge .fa {
    color: var(--bundle-blue) !important;
}

.breadcrumb .fa {
     color: var(--bundle-red) !important;
}
/* Phone / email links inside the address widget */
.o_portal_my_details a {
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.o_portal_my_details a:hover {
  color: var(--bundle-red);
}

.o_portal_my_details span:hover {
    color: var(--bundle-red);
}

.o_portal_my_details i:hover {
    color: var(--bundle-red);
}

.o_portal_my_details {
    color: #0a2240;
}

.o_portal_my_details h5 {
    color: var(--bundle-red);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
}
.o_portal_my_details h5:hover {
    color: var(--bundle-red);
}
.o_list_table a {
  color: var(--bundle-blue);
}

.o_portal_submenu i, li {
  color: var(--bundle-blue);
}

.o_portal_submenu li,i:hover {
  color: var(--bundle-red);
}

.o_portal_submenu li {
  color: var(--bundle-blue);
}

.o_portal_submenu li:hover {
  color: var(--bundle-red);
}

/* Invoice list header links  */
.o_portal_my_doc_table thead th,
.o_portal_my_doc_table th {
  font-family: var(--font-heading);
  color: var(--bundle-blue);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #e2e8f0;
}

.o_portal_my_doc_table td {
  font-family: var(--font-body);
  color: var(--text-dark);
  vertical-align: middle;
}

.o_portal_my_doc_table tbody tr:hover {
  background-color: #f8fafc;
}

/* Invoice number link */
.o_portal_my_doc_table a {
  color: var(--bundle-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.o_portal_my_doc_table a:hover {
  color: var(--bundle-red);
}

/* Status badge  */
.o_portal_my_doc_table .badge,
.o_portal_my_doc_table .o_portal_status {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.78rem;
    padding: 0.35em 0.75em;
    border-radius: 20px;
    background-color: rgba(10, 34, 64, 0.12) !important;
    color: var(--bundle-blue) !important;
    border: none;
}

/* Pay Now button  */
.o_portal_my_doc_table .btn-primary,
.o_portal a.btn-primary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  background-color: var(--bundle-blue);
  border-color: var(--bundle-blue);
  color: #ffffff;
  border-radius: 6px;
  padding: 0.4rem 1rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.o_portal_my_doc_table .btn-primary:hover,
.o_portal a.btn-primary:hover {
  background-color: var(--bundle-red);
  border-color: var(--bundle-red);
}

/* Amount Due column */
.o_portal_my_doc_table td:last-child {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bundle-blue);
}

/* Sort By / Filter By buttons */
.o_portal_navbar .dropdown-toggle,
.o_portal_navbar .btn-secondary {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-dark);
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.o_portal_navbar .dropdown-toggle:hover,
.o_portal_navbar .btn-secondary:hover {
  background-color: #e2e8f0;
  color: var(--bundle-blue);
}

.o_download_pdf a {
  color: var(--bundle-blue);
  background: #f1f5f9;
}

.o_download_pdf a:hover {
   color: var(--bundle-blue);
  background: #f1f5f9;
}

.o_portal_security_body section {
    margin-bottom: 4rem;
}


/*   Portal Security Confirmation Wizard*/

.o_portal_security_body ~ .modal,
body > .modal {
    font-family: var(--font-body);
}

/* Dark overlay */
.modal-backdrop.show {
    opacity: 0.65;
    background-color: #07182b;
}

/* Modal box */
.modal .modal-content {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(10, 34, 64, 0.25);
}

/* Header */
.modal .modal-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 20px;
}

.modal .modal-title {
    font-family: var(--font-heading);
    color: var(--bundle-blue);
    font-size: 20px;
    font-weight: 600;
}

/* Close button */
.modal .btn-close {
    opacity: 0.7;
}

.modal .btn-close:hover {
    opacity: 1;
}

/* Body */
.modal .modal-body {
    background: #ffffff;
    padding: 20px;
}

.modal .modal-body p {
    font-family: var(--font-body);
    color: var(--text-dark);
}

/* Main confirmation message */
.modal .modal-body p:first-child {
    color: var(--bundle-blue);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
}

/* Password field */
.modal .modal-body input[type="password"],
.modal .modal-body .form-control {
    width: 100%;
    height: 48px;
    padding: 0 14px;

    font-family: var(--font-body);
    font-size: 15px;
    color: var(--bundle-blue);

    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 6px;

    box-shadow: none;
}

.modal .modal-body input[type="password"]:focus,
.modal .modal-body .form-control:focus {
    border-color: var(--bundle-red);
    box-shadow: 0 0 0 3px rgba(239, 71, 37, 0.12);
    outline: none;
}

/* Forgot password */
.modal .modal-body a {
    color: var(--bundle-blue);
    font-size: 14px;
    text-decoration: underline;
}

.modal .modal-body a:hover {
    color: var(--bundle-red);
}

/* Footer */
.modal .modal-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 20px;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
}

/* Confirm button */
.modal .modal-footer .btn-primary {
    background: var(--bundle-red);
    border-color: var(--bundle-red);
    color: #ffffff;

    font-family: var(--font-body);
    font-weight: 500;

    border-radius: 5px;
    padding: 9px 16px;
}

.modal .modal-footer .btn-primary:hover {
    background: var(--bundle-red-hover);
    border-color: var(--bundle-red-hover);
}

/* Cancel button */
.modal .modal-footer .btn-secondary {
    background: transparent;
    border: 1px solid #d9e0e7;
    color: var(--bundle-blue);

    font-family: var(--font-body);
    font-weight: 500;

    border-radius: 5px;
    padding: 9px 16px;
}

.modal .modal-footer .btn-secondary:hover {
    background: var(--bundle-blue);
    border-color: var(--bundle-blue);
    color: #ffffff;
}

/* Mobile */
@media (max-width: 575.98px) {

    .modal-dialog {
        margin: 1rem;
    }

    .modal .modal-header {
        padding: 16px;
    }

    .modal .modal-body {
        padding: 16px;
    }

    .modal .modal-footer {
        padding: 12px 16px;
    }

    .modal .modal-title {
        font-size: 18px;
    }
}

.oe_login_form {
    max-width: 400px !important;
}

.oe_signup_form {
    max-width: 400px !important;
}

.profile-option:hover {
    color: var(--text-white) !important;
}

header .navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}

.o_portal_content ~ div .mt-3 {
    width: 100% !important;
}



/*my account page*/

.account-section {
    padding-top: clamp(2rem, 3.5vw, 3.5rem);
    padding-bottom: clamp(3rem, 5vw, 6rem);
}

.account-section .wrapper {
    padding-bottom: 1rem;
    margin-bottom: clamp(1rem, 2vw, 1.75rem);
    border-bottom: 1px solid rgba(17, 42, 70, 0.1);
}

.account-section .wrapper h3 {
    position: relative;
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--bundle-blue);
    padding-left: 0.9rem;
}

.account-section .wrapper h3::before {
    content: "";
    position: absolute;
    top: 0.15em;
    bottom: 0.15em;
    left: 0;
    width: 4px;
    background: var(--bundle-red);
}

.account-section .o_avatar {
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--bundle-red);
}

.account-section .btn:focus-visible {
    outline: 2px solid var(--bundle-red);
    outline-offset: 2px;
    box-shadow: none;
}

.o_portal_index_card > a {
    background: #ffffff !important;
    color: var(--bundle-blue) !important;
    border: 1px solid rgba(17, 42, 70, 0.12);
    border-radius: 4px !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.o_portal_index_card > a:hover,
.o_portal_index_card > a:focus-visible {
    border-color: var(--bundle-red);
    box-shadow: 0 10px 24px rgba(17, 42, 70, 0.1);
    transform: translateY(-3px);
}

.o_portal_index_card > a:focus-visible {
    outline: 2px solid var(--bundle-red);
    outline-offset: 2px;
}

.o_portal_index_card > a.alert-primary {
    --bs-alert-color: var(--bundle-blue);
    --bs-alert-bg: rgba(239, 71, 37, 0.08);
    --bs-alert-border-color: rgba(239, 71, 37, 0.35);
    background: rgba(239, 71, 37, 0.08) !important;
    border-color: rgba(239, 71, 37, 0.35);
    margin-bottom: 0;
}

.o_portal_index_card > a.alert-primary:hover,
.o_portal_index_card > a.alert-primary:focus-visible {
    background: rgba(239, 71, 37, 0.13) !important;
}

.o_portal_icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.o_portal_icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.o_portal_index_card h5 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--bundle-blue);
    align-items: center;
}

.o_portal_index_card p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.5;
    color: #64748b;
}

.o_portal_index_card p:empty {
    display: none;
}

.o_portal_index_card [data-placeholder_count] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    height: 1.6em;
    padding: 0 0.4em;
    border-radius: 999px;
    background: var(--bundle-red);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.o_portal_index_card [data-placeholder_count].d-none {
    display: none !important;
}

.account-section .col-lg-4 > div,
.account-section .offcanvas-body {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #ffffff 0%, #fdf5f2 100%);
    border: 1px solid rgba(17, 42, 70, 0.1);
    border-radius: 6px;
    padding: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--bundle-blue);
    box-shadow: 0 14px 34px rgba(17, 42, 70, 0.08);
}

.account-section .col-lg-4 > div::before,
.account-section .offcanvas-body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bundle-red);
}

.account-section .col-lg-4 > div::after,
.account-section .offcanvas-body::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(239, 71, 37, 0.07);
    pointer-events: none;
}

.account-section .offcanvas-body {
    flex-grow: 0;
    margin: 0 1rem 1rem;
}

.o_portal_contact_img {
    width: 56px;
    height: 56px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2px var(--bundle-red);
}

.o_portal_contact_img + div h5 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bundle-blue);
}

.o_portal_contact_img + div p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bundle-red) !important;
}

.o_portal_my_details {
    position: relative;
    z-index: 1;
    background: transparent;
    border: 0px solid rgba(17, 42, 70, 0.1);
    border-radius: 4px;
    padding: 1.25rem;
}

.o_portal_address {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-style: normal;
    line-height: 1.6;
    color: var(--bundle-blue);
}

.o_portal_address > div {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.o_portal_address > div > div + div {
    padding-top: 0.85rem;
    border-top: 1px solid rgba(17, 42, 70, 0.08);
}

.account-section .btn-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem !important;
    border-radius: 999px;
    background: var(--bundle-red);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white) !important;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.account-section .btn-link:hover,
.account-section .btn-link:focus-visible {
    background: var(--bundle-blue);
    color: var(--text-white);
    transform: translateY(-2px);
    text-decoration: none;
}

.account-section .o_portal_my_details.fa {
    display: inline-block;
    width: 2em;
    height: 2em;
    flex-shrink: 0;
    background-color: currentColor;
    color: var(--bundle-red);
    -webkit-mask: var(--portal-icon) no-repeat center / contain;
    mask: var(--portal-icon) no-repeat center / contain;
}

.account-section .btn-link .fa {
    color: inherit;
}

.account-section .o_portal_my_details .fa-map-marker {
    --portal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M8 .8a5 5 0 0 0-5 5c0 3.9 5 9.4 5 9.4s5-5.5 5-9.4a5 5 0 0 0-5-5zm0 7a2 2 0 1 1 0-4 2 2 0 0 1 0 4z'/%3E%3C/svg%3E");
}

.account-section .o_portal_my_details .fa-phone {
    --portal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3E%3Cpath d='M4.4 1.6a1.2 1.2 0 0 0-1.2 1.1C3.2 9 7 12.8 13.3 12.8a1.2 1.2 0 0 0 1.1-1.2V9.9a.8.8 0 0 0-.5-.7l-2.4-1a.8.8 0 0 0-.9.2l-.8 1a8.6 8.6 0 0 1-3.1-3.1l1-.8a.8.8 0 0 0 .2-.9l-1-2.4a.8.8 0 0 0-.7-.5z'/%3E%3C/svg%3E");
}

.account-section .o_portal_my_details .fa-envelope {
    --portal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1.5' y='3.2' width='13' height='9.6' rx='1.2'/%3E%3Cpath d='M2 4.2 8 9l6-4.8'/%3E%3C/svg%3E");
}

.account-section .btn.btn-link .fa-pencil {
    --portal-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11.3 1.9 14.1 4.7 5.6 13.2 2 14l.8-3.6z'/%3E%3Cpath d='M9.9 3.3 12.7 6.1'/%3E%3C/svg%3E");
}

.account-section .offcanvas {
    background: #ffffff;
    max-width: 320px;
}

.account-section .offcanvas-header {
    border-bottom: 1px solid rgba(17, 42, 70, 0.1);
}

.account-section .offcanvas .btn-close:focus-visible {
    outline: 2px solid var(--bundle-red);
    outline-offset: 2px;
    box-shadow: none;
}

@media (max-width: 575.98px) {
    .account-section .wrapper h3 {
        flex: 1 1 auto;
    }

    .o_portal_index_card > a {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}



/*info css*/
.oe_website_login_container {
  display: flex;
  justify-content: center;
  padding: clamp(3rem, 7vw, 6rem) 1rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(239, 71, 37, 0.07) 0, rgba(239, 71, 37, 0) 38%),
    radial-gradient(circle at 88% 85%, rgba(10, 34, 64, 0.06) 0, rgba(10, 34, 64, 0) 40%),
    var(--bg-light-grey);
}

.oe_website_login_container .oe_login_form {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  padding: clamp(2rem, 5vw, 2.75rem) clamp(1.5rem, 5vw, 2.5rem) clamp(1.25rem, 3vw, 1.75rem);
  background: #ffffff;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
  box-shadow: 0 24px 50px rgba(10, 34, 64, 0.08);
}

.oe_website_login_container .oe_login_form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--bundle-red);
}

.oe_website_login_container .card-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: var(--bundle-blue);
}

.oe_website_login_container .card-title::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: rgba(239, 71, 37, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4725' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.8 4.5 5.6v5.6c0 4.6 3.1 8.6 7.5 10 4.4-1.4 7.5-5.4 7.5-10V5.6z'/%3E%3Crect x='8.6' y='10.6' width='6.8' height='5.2' rx='1'/%3E%3Cpath d='M10.1 10.6V9.1a1.9 1.9 0 0 1 3.8 0v1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px 30px;
  box-shadow: 0 0 0 8px rgba(239, 71, 37, 0.05);
}

.oe_website_login_container form > .text-muted:first-child {
  margin: 0 0 1.75rem !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
  color: #475569 !important;
}

.oe_website_login_container form > .text-muted:first-child a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.35rem;
  font-weight: 600;
  color: var(--bundle-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

.oe_website_login_container form > .text-muted:first-child a::after {
  content: "\2197";
  font-size: 0.85em;
}

.oe_website_login_container form > .text-muted:first-child a:hover,
.oe_website_login_container form > .text-muted:first-child a:focus-visible {
  color: var(--bundle-red-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oe_website_login_container label[for="totp_token"] {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600 !important;
  color: var(--bundle-blue);
}

.oe_website_login_container #totp_token {
  padding: 0.9rem 1rem;
  margin-bottom: 0 !important;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-align: center;
  color: var(--bundle-blue);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.oe_website_login_container #totp_token::placeholder {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: normal;
  color: #94a3b8;
}

.oe_website_login_container #totp_token:focus {
  outline: 0;
  background: #ffffff;
  border-color: var(--bundle-red);
  box-shadow: 0 0 0 3px rgba(239, 71, 37, 0.12);
}

.oe_website_login_container .border-top {
  margin-top: 1.5rem;
  padding-top: 1.25rem !important;
  border-color: var(--border-grey) !important;
}

.oe_website_login_container .border-top > .text-muted {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--bundle-blue) !important;
}

.oe_website_login_container #switch-remember {
  appearance: none;
  -webkit-appearance: none;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.oe_website_login_container #switch-remember::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translate(1px, -2px);
  opacity: 0;
}

.oe_website_login_container #switch-remember:checked {
  background: var(--bundle-red);
  border-color: var(--bundle-red);
}

.oe_website_login_container #switch-remember:checked::after {
  opacity: 1;
}

.oe_website_login_container #switch-remember:focus-visible {
  outline: 2px solid var(--bundle-blue);
  outline-offset: 2px;
}

.oe_website_login_container label[for="switch-remember"] {
  cursor: pointer;
}

.oe_website_login_container .btn-primary {
  --bs-btn-bg: var(--bundle-red);
  --bs-btn-border-color: var(--bundle-red);
  --bs-btn-hover-bg: var(--bundle-red-hover);
  --bs-btn-hover-border-color: var(--bundle-red-hover);
  --bs-btn-active-bg: var(--bundle-red-hover);
  --bs-btn-active-border-color: var(--bundle-red-hover);
  --bs-btn-disabled-bg: var(--bundle-red);
  --bs-btn-disabled-border-color: var(--bundle-red);
  --bs-btn-focus-shadow-rgb: 239, 71, 37;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.oe_website_login_container .btn-primary:hover {
  transform: translateY(-1px);
}

.oe_website_login_container .btn-link {
  --bs-btn-color: #64748b;
  --bs-btn-hover-color: var(--bundle-red);
  --bs-btn-active-color: var(--bundle-red);
  margin-top: 0.25rem;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.oe_website_login_container .btn-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.oe_website_login_container .btn:focus-visible {
  outline: 2px solid var(--bundle-red);
  outline-offset: 2px;
  box-shadow: none;
}

@media (max-width: 575.98px) {
  .oe_website_login_container {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .oe_website_login_container .oe_login_form {
    box-shadow: 0 12px 28px rgba(10, 34, 64, 0.08);
  }

  .oe_website_login_container #totp_token {
    font-size: 1.25rem;
    letter-spacing: 0.3em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .oe_website_login_container .btn-primary,
  .oe_website_login_container #totp_token,
  .oe_website_login_container #switch-remember {
    transition: none;
  }

  .oe_website_login_container .btn-primary:hover {
    transform: none;
  }

}

.o_portal_wrap {
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  background: var(--bg-light-grey);
}

.o_portal_security_body {
  max-width: 820px;
  margin: 0 auto;
}

.o_portal_security_body > .d-flex:first-child {
  align-items: center;
  gap: 0.9rem !important;
  margin: 0 0 clamp(1.5rem, 3vw, 2.25rem) !important;
}

.o_portal_security_body > .d-flex:first-child h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bundle-blue);
}

.o_portal_security_body .btn-light {
  --bs-btn-bg: #ffffff;
  --bs-btn-border-color: var(--border-grey);
  --bs-btn-color: var(--bundle-blue);
  --bs-btn-hover-bg: var(--bundle-blue);
  --bs-btn-hover-border-color: var(--bundle-blue);
  --bs-btn-hover-color: var(--text-white);
  --bs-btn-active-bg: var(--bundle-blue);
  --bs-btn-active-border-color: var(--bundle-blue);
  --bs-btn-active-color: var(--text-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0 !important;
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.o_portal_security_body .oi,
.o_portal_security_body .fa {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  background-color: currentColor;
  -webkit-mask: var(--sec-icon) no-repeat center / contain;
  mask: var(--sec-icon) no-repeat center / contain;
}

.o_portal_security_body .oi-chevron-left {
  font-size: 1.1rem;
  --sec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3 5 8l5 5'/%3E%3C/svg%3E");
}

.o_portal_security_body .fa-info-circle {
  --sec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6.5'/%3E%3Cpath d='M8 7.3v3.9M8 4.8v.1'/%3E%3C/svg%3E");
}

.o_portal_security_body .fa-warning {
  --sec-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 1.9 15 14H1z'/%3E%3Cpath d='M8 6.3v3.4M8 11.8v.1'/%3E%3C/svg%3E");
}

.o_portal_security_body > section {
  position: relative;
  margin-bottom: 1.25rem;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  background: #ffffff;
  border: 1px solid var(--border-grey);
  border-radius: 8px;
}

.o_portal_security_body > section:last-child {
  margin-bottom: 0;
}

.o_portal_security_body > section h4 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding-left: 0.9rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--bundle-blue);
}

.o_portal_security_body > section h4::before {
  content: "";
  position: absolute;
  top: 0.15em;
  bottom: 0.15em;
  left: 0;
  width: 3px;
  background: var(--bundle-red);
}

.o_portal_security_body > section h4 a {
  display: inline-flex;
  color: #94a3b8;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.o_portal_security_body > section h4 a:hover,
.o_portal_security_body > section h4 a:focus-visible {
  color: var(--bundle-red);
}

.o_portal_security_body .oe_reset_password_form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.o_portal_security_body .oe_reset_password_form .auth-field:first-of-type,
.o_portal_security_body .oe_reset_password_form > button {
  grid-column: 1 / -1;
}

.o_portal_security_body .oe_reset_password_form .auth-field:first-of-type {
  max-width: calc(50% - 0.625rem);
}

.o_portal_security_body .auth-field input.form-control {
  min-height: 48px;
}

.o_portal_security_body .was-validated .auth-field input:invalid,
.o_portal_security_body .auth-field input.is-invalid {
  border-color: #dc2626;
}

.o_portal_security_body .invalid-feedback {
  font-family: var(--font-body);
  font-size: 0.8rem;
}

.o_portal_security_body .auth-submit-sm {
  --bs-btn-bg: var(--bundle-red);
  --bs-btn-border-color: var(--bundle-red);
  --bs-btn-color: var(--text-white);
  --bs-btn-hover-bg: var(--bundle-red-hover);
  --bs-btn-hover-border-color: var(--bundle-red-hover);
  --bs-btn-hover-color: var(--text-white);
  --bs-btn-active-bg: var(--bundle-red-hover);
  --bs-btn-active-border-color: var(--bundle-red-hover);
  --bs-btn-active-color: var(--text-white);
  justify-self: start;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.o_portal_security_body .auth-submit-sm:hover {
  transform: translateY(-1px);
}

.o_portal_security_body .oe_reset_password_form > .auth-submit-sm {
  margin-top: 0.25rem;
}

.o_portal_security_body section[name="portal_revoke_all_devices_popup"] .auth-submit-sm {
  --bs-btn-bg: transparent;
  --bs-btn-color: var(--bundle-red);
  --bs-btn-hover-bg: var(--bundle-red);
  --bs-btn-hover-color: var(--text-white);
  --bs-btn-hover-border-color: var(--bundle-red);
}

.o_portal_security_body .alert-secondary {
  --bs-alert-bg: rgba(239, 71, 37, 0.06);
  --bs-alert-border-color: rgba(239, 71, 37, 0.25);
  --bs-alert-color: var(--bundle-blue);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 500;
}

.o_portal_security_body .alert-secondary .fa {
  font-size: 1.15rem;
  color: var(--bundle-red);
}

.o_portal_security_body .btn:focus-visible,
.o_portal_security_body > section h4 a:focus-visible {
  outline: 2px solid var(--bundle-red);
  outline-offset: 2px;
  box-shadow: none;
}

@media (max-width: 767.98px) {
  .o_portal_security_body .oe_reset_password_form {
    grid-template-columns: minmax(0, 1fr);
  }

  .o_portal_security_body .oe_reset_password_form .auth-field:first-of-type {
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .o_portal_security_body .auth-submit-sm {
    width: 100%;
    justify-self: stretch;
  }

  .o_portal_security_body .alert-secondary {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .o_portal_security_body .auth-submit-sm,
  .o_portal_security_body .btn-light {
    transition: none;
  }

  .o_portal_security_body .auth-submit-sm:hover {
    transform: none;
  }
}