.header,
.header .top-header,
.header .top-header.bg-white,
.header.sticky {
    background-color: #fff6e5 !important;
}

.header .navigation {
    background: linear-gradient(to right, #fff6e5 50%, #ffbc3b 50%);
}

.header .navbar-brand {
    width: 210px;
    max-width: 75vw;
    min-height: 76px;
    background: url("../front/logo/randdpos-new-transparent.svg") center center / contain no-repeat;
}

.header .navbar-brand img {
    opacity: 0;
}

.rd-auth-page {
    --brand: #ffbc3b;
    --brand-dark: #ffab08;
    --brand-light: #fff6e5;
    --heading: #1e1e4b;
    --text: #5c5c77;
    --muted: #8585a4;
    --surface: #ffffff;
    --border: #dfe4e8;
    --danger: #c94a4a;
    --shadow: 0 20px 60px rgba(27, 39, 71, .12);
    background: linear-gradient(180deg, var(--brand-light) 0%, #fffaf0 38%, #ffffff 100%);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    min-height: 720px;
    padding: 170px 0 70px;
}

.rd-auth-page-tall {
    min-height: auto;
}

.rd-auth-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 56px;
    align-items: start;
}

.rd-auth-shell-contact {
    gap: 0;
    grid-template-columns: 50% minmax(0, 1fr);
    width: 100%;
}

.rd-auth-shell-contact .rd-auth-brand {
    box-sizing: border-box;
    margin-left: 0;
    max-width: none;
    padding-left: max(40px, calc((100vw - 1140px) / 2));
    padding-right: 56px;
    width: 100%;
}

.rd-auth-shell-contact .rd-auth-brand h1 {
    max-width: 520px;
}

.rd-auth-shell-contact .rd-auth-brand p,
.rd-auth-shell-contact .rd-auth-points {
    max-width: 560px;
}

.rd-auth-shell-contact .rd-auth-card-wide {
    justify-self: start;
    margin-left: 0;
    max-width: 820px;
    width: calc(100% - 40px);
}

.rd-auth-brand {
    max-width: 460px;
}

.rd-auth-eyebrow {
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.rd-auth-brand h1,
.rd-auth-card h1 {
    color: var(--heading);
    font-family: "futura-bold", "Poppins", sans-serif;
    font-weight: 700;
    line-height: 1.08;
    margin: 0;
}

.rd-auth-brand h1 {
    font-size: clamp(42px, 5vw, 64px);
}

.rd-auth-brand h1 span {
    color: var(--brand);
    display: block;
}

.rd-auth-brand p,
.rd-auth-card p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
    margin: 18px 0 0;
}

.rd-auth-points {
    display: grid;
    gap: 11px;
    margin-top: 28px;
    padding: 0;
}

.rd-auth-points li {
    color: var(--text);
    font-size: 15px;
}

.rd-auth-points li::before {
    content: "\2713";
    color: #28a745;
    margin-right: 9px;
}

.rd-auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 38px;
}

.rd-auth-card-narrow {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.rd-auth-card-wide {
    max-width: 820px;
    width: 100%;
}

.rd-auth-card h1 {
    font-size: 34px;
    text-align: center;
}

.rd-auth-card .rd-auth-subtitle {
    text-align: center;
    margin-bottom: 26px;
}

.rd-auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.rd-auth-form-grid .full {
    grid-column: 1 / -1;
}

.rd-auth-page .form-group {
    margin-bottom: 18px;
}

.rd-auth-page label {
    color: var(--heading);
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.rd-auth-page .form-control,
.rd-auth-page .form-select {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--heading);
    font-size: 15px;
    height: 46px;
    padding: 10px 13px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.rd-auth-page .form-select {
    box-sizing: border-box;
    display: block;
    width: 100%;
    appearance: none;
    background-color: #ffffff;
    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 fill='%231e1e4b' d='m1.4 1.1 4.6 4.6 4.6-4.6L12 2.5 6 8 0 2.5z'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
    padding-right: 42px;
}

.rd-auth-page textarea.form-control {
    height: auto;
    min-height: 130px;
    resize: vertical;
}

.rd-auth-page .form-control:focus,
.rd-auth-page .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(255, 188, 59, .18);
}

.rd-auth-page .input-validation-error {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(201, 74, 74, .12);
}

.rd-auth-password-field {
    position: relative;
}

.rd-auth-password-field .form-control {
    padding-right: 52px;
}

.rd-auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--heading);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    position: absolute;
    right: 2px;
    top: 1px;
    width: 46px;
}

.rd-auth-password-toggle:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.rd-auth-page .text-danger,
.rd-auth-page .field-validation-error,
.rd-auth-page .validation-summary-errors {
    color: var(--danger) !important;
    font-size: 14px;
}

.rd-auth-page .field-validation-error {
    display: block;
    line-height: 1.35;
    margin-top: 6px;
    min-height: 19px;
}

.rd-auth-alert {
    background: #fff6e5;
    border: 1px solid rgba(255, 188, 59, .45);
    border-radius: 10px;
    color: var(--heading);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 14px 16px;
}

.rd-auth-actions {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin: 8px 0 22px;
}

.rd-auth-actions label {
    margin-bottom: 0;
}

.rd-auth-page a {
    color: var(--brand-dark);
    font-weight: 700;
}

.rd-auth-page a:hover {
    color: var(--heading);
}

.rd-auth-btn {
    align-items: center;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    transition: .2s ease;
    width: 100%;
}

/* Override the generic authentication-page link color for button links. */
.rd-auth-page a.rd-auth-btn {
    color: #ffffff;
}

.rd-auth-btn:hover,
.rd-auth-btn:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #ffffff;
    text-decoration: none;
}

.rd-auth-page a.rd-auth-btn:hover,
.rd-auth-page a.rd-auth-btn:focus {
    color: #ffffff;
}

.rd-auth-btn:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.rd-auth-footer-note {
    color: var(--muted);
    font-size: 15px;
    margin-top: 22px;
    text-align: center;
}

.rd-auth-card hr {
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.rd-auth-choice-list {
    display: grid;
    gap: 14px;
}

.rd-auth-choice {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--heading) !important;
    display: flex;
    gap: 16px;
    padding: 18px;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.rd-auth-choice:hover,
.rd-auth-choice:focus {
    border-color: rgba(255, 188, 59, .7);
    box-shadow: 0 14px 34px rgba(27, 39, 71, .1);
    text-decoration: none;
    transform: translateY(-2px);
}

.rd-auth-choice-icon {
    align-items: center;
    background: #fff6e5;
    border-radius: 10px;
    color: var(--brand-dark);
    display: inline-flex;
    flex: 0 0 52px;
    font-size: 20px;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.rd-auth-choice strong {
    color: var(--heading);
    display: block;
    font-size: 18px;
    line-height: 1.25;
}

.rd-auth-choice small {
    color: var(--muted);
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    margin-top: 4px;
}

.rd-policy-page {
    --brand: #ffbc3b;
    --brand-dark: #ffab08;
    --brand-light: #fff6e5;
    --heading: #1e1e4b;
    --text: #5c5c77;
    --muted: #8585a4;
    --surface: #ffffff;
    --border: #dfe4e8;
    --shadow: 0 20px 60px rgba(27, 39, 71, .1);
    background: linear-gradient(180deg, var(--brand-light) 0%, #fffaf0 28%, #ffffff 100%);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    padding: 170px 0 70px;
}

.rd-policy-shell {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
}

.rd-policy-header {
    margin-bottom: 34px;
    max-width: 760px;
}

.rd-policy-eyebrow {
    color: var(--brand);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.rd-policy-header h1 {
    color: var(--heading);
    font-family: "futura-bold", "Poppins", sans-serif;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.08;
    margin: 0;
}

.rd-policy-header h1 span {
    color: var(--brand);
}

.rd-policy-header p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    margin: 18px 0 0;
}

.rd-policy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 42px;
}

.rd-policy-card p {
    color: var(--text);
    font-size: 16px;
    line-height: 1.9;
    margin: 0 0 18px;
}

.rd-policy-card strong {
    color: var(--heading);
    display: block;
    font-family: "futura-bold", "Poppins", sans-serif;
    font-size: 22px;
    line-height: 1.3;
    margin-top: 28px;
}

.rd-policy-card a {
    color: var(--brand-dark);
    font-weight: 700;
}

@media (max-width: 991px) {
    .rd-auth-page {
        padding-top: 165px;
    }

    .rd-auth-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .rd-auth-brand {
        max-width: none;
        text-align: center;
    }

    .rd-auth-shell-contact {
        width: min(720px, calc(100% - 40px));
    }

    .rd-auth-shell-contact .rd-auth-brand {
        margin-left: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .rd-auth-shell-contact .rd-auth-card-wide {
        max-width: none;
        width: 100%;
    }

    .rd-auth-points {
        display: none;
    }
}

@media (max-width: 575px) {
    .rd-policy-page {
        padding: 165px 0 45px;
    }

    .rd-policy-shell {
        width: calc(100% - 28px);
    }

    .rd-policy-card {
        padding: 26px 20px;
    }
}

@media (max-width: 575px) {
    .rd-auth-page {
        padding: 165px 0 45px;
    }

    .rd-auth-shell {
        width: calc(100% - 28px);
    }

    .rd-auth-card {
        padding: 26px 20px;
    }

    .rd-auth-form-grid {
        grid-template-columns: 1fr;
    }

    .rd-auth-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
