
/* ============================================================
   LANKAQUEST
   REGISTER PAGE
============================================================ */


/* ============================================================
   PAGE
============================================================ */

.auth-page {
    min-height: calc(100vh - 80px);

    display: flex;

    justify-content: center;

    align-items: flex-start;

    padding: 60px 20px 80px;

    background:
        linear-gradient(135deg,
            #f4f8f5 0%,
            #eef6f1 50%,
            #f8faf9 100%);
}


/* ============================================================
   CONTAINER
============================================================ */

.auth-container {
    width: 100%;

    max-width: 620px;

    margin: 0 auto;
}


/* ============================================================
   REGISTER CARD
============================================================ */

.auth-card {
    width: 100%;

    background: #ffffff;

    border-radius: 18px;

    padding: 40px;

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.08);

    border: 1px solid #e6ece8;
}


/* ============================================================
   HEADER
============================================================ */

.auth-header {
    text-align: center;

    margin-bottom: 30px;
}


.auth-header h1 {
    margin: 0 0 10px;

    font-size: 32px;

    line-height: 1.2;

    font-weight: 700;

    color: #173b2a;
}


.auth-header p {
    margin: 0;

    font-size: 15px;

    line-height: 1.6;

    color: #66756d;
}


/* ============================================================
   MESSAGE
============================================================ */

.auth-message {
    width: 100%;

    box-sizing: border-box;

    padding: 13px 15px;

    margin-bottom: 22px;

    border-radius: 10px;

    font-size: 14px;

    line-height: 1.5;

    border: 1px solid transparent;
}


/* ============================================================
   FORM
============================================================ */

#registrationForm {
    width: 100%;
}


/* ============================================================
   FORM GROUP
============================================================ */

.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: 600;

    color: #263c32;
}


/* ============================================================
   INPUTS
============================================================ */

.form-group input,
.form-group select {
    width: 100%;

    box-sizing: border-box;

    min-height: 48px;

    padding: 12px 14px;

    border: 1px solid #d3ddd7;

    border-radius: 9px;

    background: #ffffff;

    color: #263c32;

    font-size: 15px;

    font-family: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-group input::placeholder {
    color: #9aa8a1;
}


.form-group input:focus,
.form-group select:focus {
    border-color: #2f7d55;

    box-shadow:
        0 0 0 3px rgba(47, 125, 85, 0.12);
}


/* ============================================================
   READ ONLY GOOGLE EMAIL
============================================================ */

.form-group input[readonly] {
    background: #f3f6f4;

    color: #53645b;

    cursor: not-allowed;
}


/* ============================================================
   DISABLED GOOGLE PASSWORD FIELDS
============================================================ */

.form-group input:disabled {
    background: #f1f4f2;

    color: #89958f;

    cursor: not-allowed;

    opacity: 1;
}


/* ============================================================
   ACCOUNT TYPE
============================================================ */

.account-type-options {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}


/* ============================================================
   ACCOUNT TYPE OPTION
============================================================ */

.account-type-option {
    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 54px;

    padding: 0 14px;

    border: 1px solid #d3ddd7;

    border-radius: 10px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.account-type-option:hover {
    border-color: #8eb7a0;

    background: #f7fbf8;
}


/* ============================================================
   RADIO
============================================================ */

.account-type-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


/* ============================================================
   SELECTED ACCOUNT TYPE
============================================================ */

.account-type-option:has(input:checked) {
    border-color: #2f7d55;

    background: #edf8f1;

    box-shadow:
        0 0 0 2px rgba(47, 125, 85, 0.08);
}


.account-type-option span {
    font-size: 15px;

    font-weight: 600;

    color: #294237;
}


/* ============================================================
   HIDDEN
============================================================ */

.hidden {
    display: none !important;
}


/* ============================================================
   SUBMIT BUTTON
============================================================ */

.auth-button {
    width: 100%;

    min-height: 50px;

    margin-top: 8px;

    padding: 13px 20px;

    border: none;

    border-radius: 10px;

    background: #2f7d55;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

    font-family: inherit;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.auth-button:hover {
    background: #256744;

    box-shadow:
        0 6px 18px rgba(47, 125, 85, 0.22);

    transform: translateY(-1px);
}


.auth-button:active {
    transform: translateY(0);
}


.auth-button:focus-visible {
    outline: 3px solid rgba(47, 125, 85, 0.25);

    outline-offset: 2px;
}


/* ============================================================
   FOOTER
============================================================ */

.auth-footer {
    text-align: center;

    margin-top: 25px;

    padding-top: 22px;

    border-top: 1px solid #e7ece9;
}


.auth-footer p {
    margin: 0;

    color: #68776f;

    font-size: 14px;
}


.auth-footer a {
    color: #2f7d55;

    font-weight: 700;

    text-decoration: none;
}


.auth-footer a:hover {
    text-decoration: underline;
}


/* ============================================================
   HEADER
============================================================ */

.site-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid #e7ece9;

    position: relative;

    z-index: 10;
}


.header-container {
    width: min(1180px,
            calc(100% - 40px));

    min-height: 76px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* ============================================================
   LOGO
============================================================ */

.site-header .logo {
    color: #173b2a;

    font-size: 24px;

    font-weight: 800;

    text-decoration: none;

    white-space: nowrap;
}


/* ============================================================
   NAVIGATION
============================================================ */

.main-nav {
    display: flex;

    align-items: center;

    gap: 24px;
}


.main-nav a {
    color: #4d5f55;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    transition: color 0.2s ease;
}


.main-nav a:hover {
    color: #2f7d55;
}


/* ============================================================
   VALIDATION
============================================================ */

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid {
    border-color: #d3ddd7;
}


.form-group input:focus:invalid {
    border-color: #d3ddd7;

    box-shadow:
        0 0 0 3px rgba(47, 125, 85, 0.12);
}


/* ============================================================
   GOOGLE REGISTRATION MODE
============================================================ */

body.google-registration .auth-header::after {

    content:
        "Google account connected";

    display: inline-block;

    margin-top: 12px;

    padding: 6px 10px;

    border-radius: 20px;

    background: #edf8f1;

    color: #176044;

    font-size: 12px;

    font-weight: 600;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 768px) {

    .auth-page {
        padding:
            35px 15px 60px;
    }


    .auth-card {
        padding: 30px 24px;

        border-radius: 15px;
    }


    .auth-header h1 {
        font-size: 28px;
    }


    .header-container {
        min-height: 68px;

        width: calc(100% - 30px);

        gap: 15px;
    }


    .site-header .logo {
        font-size: 21px;
    }


    .main-nav {
        gap: 12px;
    }


    .main-nav a {
        font-size: 13px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 560px) {

    .auth-page {
        padding:
            20px 12px 45px;
    }


    .auth-card {
        padding: 25px 18px;

        border-radius: 13px;
    }


    .auth-header {
        margin-bottom: 24px;
    }


    .auth-header h1 {
        font-size: 25px;
    }


    .auth-header p {
        font-size: 14px;
    }


    .account-type-options {
        grid-template-columns: 1fr;
    }


    .account-type-option {
        min-height: 50px;
    }


    .header-container {
        flex-direction: column;

        justify-content: center;

        padding: 14px 0;

        gap: 10px;
    }


    .main-nav {
        flex-wrap: wrap;

        justify-content: center;

        gap: 10px 16px;
    }


    .main-nav a {
        font-size: 12px;
    }

}


/* ============================================================
   VERY SMALL SCREENS
============================================================ */

@media (max-width: 360px) {

    .auth-card {
        padding:
            22px 14px;
    }


    .auth-header h1 {
        font-size: 23px;
    }


    .form-group input,
    .form-group select {
        font-size: 14px;

        min-height: 46px;
    }


    .auth-button {
        min-height: 48px;
    }

}
