/* =========================================
   ABSOLUTEPREP AUTHENTICATION PAGES
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;

    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family: 'Poppins', sans-serif;

    background: #f8fafc;
    color: #0f172a;

    overflow-x: hidden;
}


/* =========================================
   HEADER
========================================= */

.auth-header {
    width: 100%;
    height: 92px;

    background: #ffffff;

    border-bottom: 1px solid #e2e8f0;

    display: flex;
    align-items: center;
}

.auth-header-container {
    width: calc(100% - 40px);
    max-width: 1400px;

    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-logo-link {
    display: flex;
    align-items: center;

    text-decoration: none;
}

.auth-logo {
    height: 77px;
    width: auto;

    object-fit: contain;

    display: block;
}


/* =========================================
   BACK TO HOME
========================================= */

.back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border-radius: 8px;

    border: 1px solid #d1d5db;

    background: #ffffff;

    color: #334155;

    text-decoration: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.back-home:hover {
    color: #0f766e;

    border-color: #0f766e;

    background: #f0fdfa;
}


/* =========================================
   AUTH PAGE
========================================= */

.auth-page {
    min-height: calc(100vh - 92px);

    padding: 70px 20px 90px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(20, 184, 166, 0.08),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 75%,
            rgba(6, 182, 212, 0.07),
            transparent 30%
        ),
        #f8fafc;
}


/* =========================================
   AUTH CARD
========================================= */

.auth-card {
    width: 100%;
    max-width: 470px;

    padding: 42px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 20px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08);
}


/* =========================================
   AUTH HEADING
========================================= */

.auth-heading {
    margin-bottom: 8px;

    color: #0f172a;

    font-size: 32px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.8px;
}

.auth-subheading {
    margin-bottom: 32px;

    color: #64748b;

    font-size: 15px;

    line-height: 1.6;

    font-weight: 400;
}


/* =========================================
   FORM
========================================= */

.auth-form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}

.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;
}

.form-label {
    color: #334155;

    font-size: 14px;

    font-weight: 600;
}

.form-input {
    width: 100%;

    height: 50px;

    padding: 0 15px;

    border: 1px solid #cbd5e1;

    border-radius: 9px;

    background: #ffffff;

    color: #0f172a;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: #94a3b8;
}

.form-input:focus {
    border-color: #0f766e;

    box-shadow:
        0 0 0 3px rgba(15, 118, 110, 0.10);
}


/* =========================================
   PASSWORD ROW
========================================= */

.password-row {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.forgot-password {
    color: #0f766e;

    font-size: 13px;

    font-weight: 500;

    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}


/* =========================================
   PRIMARY BUTTON
========================================= */

.auth-submit {
    width: 100%;

    height: 50px;

    margin-top: 5px;

    border: none;

    border-radius: 9px;

    background: #0f766e;

    color: #ffffff;

    font-family: 'Poppins', sans-serif;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-submit:hover {
    background: #115e59;

    transform: translateY(-1px);

    box-shadow:
        0 8px 18px rgba(15, 118, 110, 0.18);
}

.auth-submit:disabled {
    opacity: 0.65;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* =========================================
   DIVIDER
========================================= */

.auth-divider {
    display: flex;

    align-items: center;

    gap: 14px;

    margin: 26px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}

.auth-divider span {
    color: #94a3b8;

    font-size: 12px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}


/* =========================================
   GOOGLE BUTTON
========================================= */

.google-button {
    width: 100%;

    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 11px;

    border: 1px solid #cbd5e1;

    border-radius: 9px;

    background: #ffffff;

    color: #334155;

    font-family: 'Poppins', sans-serif;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.google-button:hover {
    background: #f8fafc;

    border-color: #94a3b8;

    box-shadow:
        0 4px 12px rgba(15, 23, 42, 0.06);
}

.google-icon {
    width: 19px;
    height: 19px;

    display: block;
}


/* =========================================
   BOTTOM TEXT
========================================= */

.auth-bottom-text {
    margin-top: 26px;

    text-align: center;

    color: #64748b;

    font-size: 14px;

    line-height: 1.6;
}

.auth-bottom-text a {
    color: #0f766e;

    font-weight: 600;

    text-decoration: none;
}

.auth-bottom-text a:hover {
    text-decoration: underline;
}


/* =========================================
   MESSAGE
========================================= */

.auth-message {
    display: none;

    margin-top: 18px;

    padding: 12px 14px;

    border-radius: 8px;

    font-size: 13px;

    line-height: 1.5;
}

.auth-message.show {
    display: block;
}

.auth-message.error {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;
}

.auth-message.success {
    background: #f0fdfa;

    border: 1px solid #99f6e4;

    color: #0f766e;
}


/* =========================================
   LOADING
========================================= */

.button-loading {
    display: inline-flex;

    align-items: center;

    gap: 8px;
}

.spinner {
    width: 15px;
    height: 15px;

    border: 2px solid rgba(255, 255, 255, 0.4);

    border-top-color: #ffffff;

    border-radius: 50%;

    animation: spin 0.7s linear infinite;
}

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


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .auth-header {
        height: 78px;
    }

    .auth-header-container {
        width: calc(100% - 28px);
    }

    .auth-logo {
        height: 66px;
    }

    .back-home {
        padding: 8px 12px;

        font-size: 13px;
    }

    .auth-page {
        min-height: calc(100vh - 78px);

        padding: 35px 16px 60px;
    }

    .auth-card {
        padding: 30px 23px;

        border-radius: 17px;
    }

    .auth-heading {
        font-size: 28px;
    }

    .auth-subheading {
        font-size: 14px;

        margin-bottom: 27px;
    }
}


/* =========================================
   SMALL PHONES
========================================= */

@media (max-width: 400px) {

    .auth-logo {
        height: 60px;
    }

    .back-home {
        padding: 7px 10px;

        font-size: 12px;
    }

    .auth-card {
        padding: 27px 19px;
    }

    .auth-heading {
        font-size: 25px;
    }
}
