﻿html,
body {
    min-height: 100%;
}

/* =====================================================
   GET ACCESS PAGE
===================================================== */

.access-area {
    width: 100%;
    padding: 0;
    background: transparent;
    box-sizing: border-box;
}

.access-area .intro {
    max-width: 760px;
    margin: 0 auto 30px;
}

.access-area .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.selected-exam,
.plan-label {
    color: #2580f5;
}

.selected-exam {
    font-weight: 700;
    text-transform: uppercase;
}

.exam-picker {
    max-width: 600px;
    margin: 24px auto 38px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(17, 56, 110, 0.08);
}

.exam-picker label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.exam-picker select {
    width: 100%;
    min-height: 48px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #b9c9da;
    border-radius: 8px;
}

.exam-picker select:focus {
    border-color: #2580f5;
    outline: 3px solid rgba(37, 128, 245, 0.15);
}

.plan-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
    width: 100%;
    margin: 0;
}

.plan-card {
    display: flex;
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: left;
    background: #ffffff;
    border: 1px solid #dbe5ef;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(17, 56, 110, 0.08);
    box-sizing: border-box;
}

.plan-card.paid {
    border: 2px solid #2580f5;
}

.plan-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 480px;
    padding: 30px;
    box-sizing: border-box;
}

.plan-label {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.plan-price {
    margin: 18px 0 4px;
    font-size: 55px;
    line-height: 1;
    font-weight: 800;
}

.plan-price small,
.plan-subtitle,
.access-note {
    color: #527094;
}

.plan-price small {
    font-size: 17px;
    font-weight: 400;
}

.plan-features {
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.plan-features li {
    position: relative;
    margin: 15px 0;
    padding-left: 30px;
    font-size: 17px;
}

.plan-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #20a96b;
    font-weight: 800;
}

.plan-button {
    display: block;
    margin-top: auto;
    padding: 15px 20px;
    color: #123b68;
    background: #f5f8fc;
    border: 1px solid #cbd8e6;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    text-align: center;
}

.plan-button:hover,
.plan-button:focus {
    color: #0762c1;
    border-color: #2580f5;
    text-decoration: none;
}

.paid .plan-button {
    color: #ffffff;
    background: #2580f5;
    border-color: #2580f5;
}

.paid .plan-button:hover,
.paid .plan-button:focus {
    color: #ffffff;
    background: #0762c1;
    border-color: #0762c1;
}

.access-note {
    margin-top: 30px;
}

.access-result {
    display: block;
    margin-top: 12px;
    text-align: center;
}

/* UpdatePanel loading state used by the account login form. */
.account-content-shell {
    position: relative;
}

.account-loading-overlay {
    position: absolute;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 14px;
}

.account-loading-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #123b68;
    background: #ffffff;
    border: 1px solid #cbd8e6;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(17, 56, 110, 0.16);
    font-size: 16px;
    font-weight: 700;
}

.account-loading-spinner {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 3px solid rgba(37, 128, 245, 0.22);
    border-top-color: #2580f5;
    border-radius: 50%;
    animation: account-loading-spin 0.75s linear infinite;
}

@keyframes account-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-loading-spinner {
        animation-duration: 1.5s;
    }
}

@media (max-width: 767px) {
    .plan-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .plan-content {
        min-height: 0;
        padding: 24px;
    }

    .plan-price {
        font-size: 46px;
    }
}

    body.account-page {
        margin: 0;
        min-height: 100vh;
        overflow-x: hidden;
    }

.account-page-container {
    width: 100%;
    min-height: 100vh;
    padding: 40px 5%;
}

.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: calc(100vh - 80px);
}

    .auth-wrapper form {
        width: min(940px, 100%);
        margin-left: auto;
    }

/* Main white container */

.auth-box {
    width: 100% !important;
    max-width: 940px !important;
    padding: 34px;
    background: #ffffff;
    border: 1px solid #2580f5;
    border-radius: 16px;
    box-shadow: 0 0 0 8px rgba(37, 128, 245, 0.07), 0 18px 55px rgba(17, 56, 110, 0.14);
    box-sizing: border-box;
}

/* Logo */

.auth-logo {
    display: block;
    width: 100%;
    margin: 0 0 28px;
    text-align: center;
}

    .auth-logo img {
        display: inline-block;
        width: 275px;
        max-width: 70%;
        height: auto;
    }

/* =====================================================
   LOGIN AND REGISTER COLUMNS
===================================================== */

.account-options-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    margin: 0;
}

    .account-options-row > .account-column {
        float: none;
        flex: 1 1 0;
        width: calc(50% - 15px);
        max-width: calc(50% - 15px);
        padding: 0;
    }

.account-option-panel {
    display: block;
    width: 100%;
    height: 100%;
}

.account-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 500px;
    height: 100%;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dde6f1;
    border-radius: 13px;
    box-shadow: 0 8px 25px rgba(15, 47, 90, 0.06);
    box-sizing: border-box;
}

/* =====================================================
   CARD HEADERS
===================================================== */

.account-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e6edf5;
}

    .account-card-header > div {
        min-width: 0;
    }

    .account-card-header h4 {
        margin: 0 0 5px;
        color: #102e61;
        font-size: 24px;
        line-height: 1.2;
        font-weight: 700;
    }

    .account-card-header p {
        margin: 0;
        color: #63758b;
        font-size: 14px;
        line-height: 1.5;
    }

.account-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #edf5ff;
    color: #0875e8;
    font-size: 24px;
}

/* =====================================================
   FORM CONTROLS
===================================================== */

.account-card .form-group {
    width: 100%;
    margin-bottom: 18px;
}

.account-card .form-label {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    color: #1e334f;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.account-card .form-control {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 48px;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cbd7e5;
    border-radius: 7px;
    background: #ffffff;
    color: #1e334f;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    box-sizing: border-box;
    box-shadow: none;
}

    .account-card .form-control::placeholder {
        color: #8a99ac;
        opacity: 1;
    }

    .account-card .form-control:focus {
        border-color: #0875e8;
        outline: none;
        box-shadow: 0 0 0 3px rgba(8, 117, 232, 0.12);
    }

/* Validation messages */

.account-card span[style*="color:Red"],
.account-card span[style*="color:red"] {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.4;
}

/* =====================================================
   LINKS
===================================================== */

.forgot-password-area {
    width: 100%;
    margin-top: -7px;
    margin-bottom: 20px;
    text-align: right;
}

.account-text-link {
    color: #0875e8;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

    .account-text-link:hover,
    .account-text-link:focus {
        color: #075fb9;
        text-decoration: underline;
    }

/* =====================================================
   BUTTONS
===================================================== */

.account-action-area {
    width: 100%;
    margin-top: auto;
}

.account-main-button {
    display: block;
    width: 100% !important;
    min-height: 48px;
    padding: 11px 18px;
    border: 1px solid #0875e8;
    border-radius: 7px;
    background: #0875e8;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
    cursor: pointer;
}

    .account-main-button:hover,
    .account-main-button:focus {
        border-color: #0762c1;
        background: #0762c1;
        color: #ffffff;
    }

/* =====================================================
   TERMS AND RESULTS
===================================================== */

.account-terms {
    width: 100%;
    margin-bottom: 18px;
    color: #66778b;
    font-size: 12px;
    line-height: 1.6;
}

    .account-terms a {
        color: #0875e8;
        font-weight: 600;
        text-decoration: underline;
    }

.account-result-message {
    display: block;
    width: 100%;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.5;
}

/* Other workflow panels */

.single-account-panel {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 28px;
    border: 1px solid #dde6f1;
    border-radius: 13px;
    background: #ffffff;
    box-sizing: border-box;
}

    .single-account-panel h4 {
        margin: 0 0 18px;
        color: #102e61;
        font-size: 25px;
        font-weight: 700;
    }

    .single-account-panel .form-control {
        width: 100%;
        height: 48px;
        box-sizing: border-box;
    }

/* Footer */

.account-footer {
    width: 100%;
    margin-top: 24px;
    color: #243b59;
    font-size: 13px;
    text-align: center;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1199px) {

    .account-page-container {
        padding-right: 3%;
        padding-left: 3%;
    }

    .auth-wrapper form {
        width: min(860px, 100%);
    }

    .auth-box {
        max-width: 860px !important;
    }
}

@media (max-width: 991px) {

    .account-page-container {
        padding: 30px;
    }

    .auth-wrapper {
        justify-content: center;
    }

        .auth-wrapper form {
            width: 100%;
            max-width: 760px;
            margin: 0 auto;
        }

    .auth-box {
        width: 100% !important;
        max-width: 760px !important;
        padding: 28px;
    }

    .account-options-row {
        gap: 20px;
    }

    .account-card {
        padding: 22px;
    }

    .account-card-header {
        align-items: flex-start;
    }

        .account-card-header h4 {
            font-size: 21px;
        }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .account-page-container {
        padding: 22px 16px;
    }

    .auth-wrapper {
        min-height: auto;
    }

    .auth-box {
        padding: 22px;
    }

    .auth-logo {
        margin-bottom: 22px;
    }

        .auth-logo img {
            width: 230px;
            max-width: 80%;
        }

    .account-options-row {
        display: block;
    }

        .account-options-row > .account-column {
            width: 100%;
            max-width: 100%;
            margin-bottom: 22px;
        }

            .account-options-row > .account-column:last-child {
                margin-bottom: 0;
            }

    .account-card {
        min-height: auto;
        padding: 24px;
    }

    .account-action-area {
        margin-top: 12px;
    }
}

@media (max-width: 480px) {

    .account-page-container {
        padding: 14px 10px;
    }

    .auth-box {
        padding: 18px;
        border-radius: 12px;
    }

    .account-card {
        padding: 20px;
        border-radius: 10px;
    }

    .account-card-header {
        gap: 11px;
    }

        .account-card-header h4 {
            font-size: 20px;
        }

    .account-card-icon {
        flex-basis: 43px;
        width: 43px;
        height: 43px;
        font-size: 21px;
    }
}

.app-brand .site-logo {
    display: block;
    width: 240px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.account-menu-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px !important;
    color: #16365c;
    background: #ffffff;
    border: 1px solid #d7e0ea;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

    .account-menu-button:hover,
    .account-menu-button:focus {
        color: #16365c;
        background: #f4f7fb;
        border-color: #9fb3c8;
        text-decoration: none;
    }

    .account-menu-button .bi-person {
        font-size: 1.25rem;
        line-height: 1;
    }

.account-dropdown-icon {
    width: 20px;
    color: #16365c;
    font-size: 1.1rem;
    line-height: 1;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.support-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 14px;
    color: #1976d2;
    background: #ffffff;
    border: 1px solid #1976d2;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

    .support-header-button:hover,
    .support-header-button:focus {
        color: #ffffff;
        background: #1976d2;
        border-color: #1976d2;
        text-decoration: none;
    }

    .support-header-button .bi-question-circle-fill {
        font-size: 1.2rem;
        line-height: 1;
    }

.logout-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    white-space: nowrap;
    text-decoration: none;
}

    .logout-header-button:hover,
    .logout-header-button:focus {
        text-decoration: none;
    }

@media (max-width: 575.98px) {
    .app-brand .site-logo {
        width: 135px;
    }

    .header-actions {
        gap: 6px;
    }

    .account-menu-button,
    .support-header-button,
    .logout-header-button {
        min-height: 38px;
        padding: 6px 9px !important;
        font-size: 0.82rem;
    }

    .account-menu-button {
        gap: 4px;
    }

        .account-menu-button .bi-person {
            display: none;
        }

    .support-header-button {
        width: 38px;
        padding: 6px !important;
        border-radius: 50%;
    }

    .support-header-text {
        display: none;
    }
}
.auth-logo picture {
    display: block;
}

@media (max-width: 767px) {
    .auth-logo .logo {
        width: 118px !important;
        max-width: 40vw !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain;
    }
}
