/* =========================================================
   COMPACT REGISTER PAGE
========================================================= */

.auth-page {
    min-height: calc(100vh - 75px);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background:
        linear-gradient(
            rgba(5, 35, 58, 0.92),
            rgba(5, 35, 58, 0.92)
        ),
        url("../images/hero/world-travel.jpg")
        center / cover no-repeat;
}

.auth-card {
    width: min(760px, 100%);
    padding: 25px 32px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 17px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

/* =========================================================
   PROGRESS
========================================================= */

.registration-progress {
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.progress-step {
    min-width: 68px;
    text-align: center;
}

.progress-step span {
    width: 30px;
    height: 30px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.progress-step p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.progress-step.active span {
    border-color: #d8a83e;
    background: #d8a83e;
    color: #ffffff;
}

.progress-step.active p {
    color: #083d63;
}

.progress-line {
    width: 55px;
    height: 2px;
    margin-top: 14px;
    background: #dbe3ea;
}

/* =========================================================
   HEADING
========================================================= */

.auth-heading {
    margin-bottom: 18px;
    text-align: center;
}

.auth-heading > span {
    display: inline-block;
    margin-bottom: 5px;
    color: #d8a83e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.auth-heading h1 {
    margin: 0;
    color: #083d63;
    font-size: 29px;
    line-height: 1.15;
}

.auth-heading p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
}

/* =========================================================
   FORM GRID
========================================================= */

.auth-card form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 16px;
}

/* =========================================================
   ACCOUNT TYPE
========================================================= */

.account-type-selection {
    grid-column: 1 / -1;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 13px;
}

.account-type-card {
    position: relative;
    cursor: pointer;
}

.account-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-content {
    min-height: 76px;
    padding: 13px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    border: 2px solid #dbe3ea;
    border-radius: 10px;
    background: #f8fafc;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.account-type-content strong {
    margin-bottom: 4px;
    color: #083d63;
    font-size: 15px;
}

.account-type-content small {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.account-type-card input:checked + .account-type-content {
    border-color: #d8a83e;
    background: #fffaf0;
    transform: translateY(-1px);
}

/* =========================================================
   FORM FIELDS
========================================================= */

.form-group {
    margin: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #17324d;
    font-size: 12px;
    font-weight: 700;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #1478bd;
    box-shadow: 0 0 0 3px rgba(20, 120, 189, 0.12);
}

/* Make final field use full width */

.form-group:last-of-type {
    grid-column: 1 / -1;
}

/* =========================================================
   SUBMIT BUTTON
========================================================= */

.auth-submit-button {
    grid-column: 1 / -1;
    width: 100%;
    height: 44px;
    margin-top: 2px;
    border: 0;
    border-radius: 9px;
    background: #083d63;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.auth-submit-button:hover {
    background: #0c5b8f;
    transform: translateY(-1px);
}

/* =========================================================
   FOOTER
========================================================= */

.auth-footer-text {
    margin: 15px 0 0;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.auth-footer-text a {
    color: #1478bd;
    font-weight: 800;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* =========================================================
   FLASH MESSAGES
========================================================= */

.flash-wrapper {
    position: relative;
    z-index: 20;
}

.flash-message {
    margin: 0 auto 10px;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 12px;
}

.flash-message.error,
.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

.flash-message.success,
.flash-success {
    background: #dcfce7;
    color: #166534;
}

/* =========================================================
   TABLET AND MOBILE
========================================================= */

@media (max-width: 650px) {
    .auth-page {
        min-height: auto;
        padding: 14px 10px;
        align-items: flex-start;
    }

    .auth-card {
        padding: 22px 17px;
        border-radius: 13px;
    }

    .auth-card form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account-type-selection {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .form-group:last-of-type,
    .auth-submit-button {
        grid-column: auto;
    }

    .account-type-content {
        min-height: 65px;
    }

    .progress-line {
        width: 30px;
    }

    .progress-step {
        min-width: 55px;
    }

    .auth-heading h1 {
        font-size: 25px;
    }
}

/* =========================================================
   SHORT COMPUTER SCREENS
========================================================= */

@media (max-height: 720px) and (min-width: 651px) {
    .auth-page {
        padding: 8px 16px;
    }

    .auth-card {
        padding: 18px 28px;
    }

    .registration-progress {
        margin-bottom: 11px;
    }

    .auth-heading {
        margin-bottom: 12px;
    }

    .auth-heading p {
        display: none;
    }

    .account-type-content {
        min-height: 65px;
        padding: 10px 14px;
    }

    .form-group input,
    .form-group select {
        height: 39px;
    }

    .auth-submit-button {
        height: 41px;
    }

    .auth-footer-text {
        margin-top: 10px;
    }
}