/* =========================================================
   ALMASI INTERNATIONAL
   CLIENT PORTAL AUTHENTICATION
   auth.css
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --auth-bg: #080808;
    --auth-card: #151515;
    --auth-card-top: #191919;

    --gold: #edc34f;
    --gold-light: #f3cf67;
    --gold-dark: #b8952f;

    --white: #f5f5f5;
    --text: #d0d0d0;
    --muted: #999999;

    --border: rgba(237, 195, 79, 0.28);
    --border-light: rgba(255, 255, 255, 0.14);

    --input-bg: #080808;

    --danger: #ef7777;
    --success: #7dcc91;

    --radius: 22px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    min-height: 100%;
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(237, 195, 79, 0.035),
            transparent 35%
        ),
        var(--auth-bg);

    color: var(--white);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


/* =========================================================
   AUTH PAGE
========================================================= */

.auth-page {

    min-height: 100vh;

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    padding:
        32px
        20px
        60px;

}



/* =========================================================
   AUTH CARD
========================================================= */

.auth-card {
    width: 100%;
    max-width: 384px;

    margin-top: 80px; /* MOVE CARD AWAY FROM HEADER */

    background:
        linear-gradient(
            180deg,
            var(--auth-card-top) 0%,
            var(--auth-card) 100%
        );

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding:
        32px
        32px
        26px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.55),
        0 5px 25px rgba(0, 0, 0, 0.3);

    position: relative;

    overflow: hidden;
}


/* subtle top highlight */

.auth-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(237, 195, 79, 0.35),
            transparent
        );
}


/* =========================================================
   AUTH VIEW
========================================================= */

.auth-view {

    width: 100%;

    animation:
        authFade
        0.25s
        ease;
}


@keyframes authFade {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   EYEBROW
========================================================= */

.auth-eyebrow {

    color: var(--gold);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 5px;

    text-transform: uppercase;

    margin-bottom: 14px;
}


/* =========================================================
   HEADING
========================================================= */

.auth-card h1 {

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 400;

    line-height: 1.25;

    margin-bottom: 12px;

}


/* =========================================================
   DESCRIPTION
========================================================= */

.auth-description {

    color: #bdbdbd;

    font-size: 14px;

    line-height: 1.55;

    margin-bottom: 14px;
}


/* =========================================================
   NOTICE BOX
========================================================= */

.auth-notice {

    border: 1px solid var(--border-light);

    background:
        rgba(255, 255, 255, 0.015);

    border-radius: 17px;

    padding:
        12px
        12px;

    color: #aaa;

    font-size: 12px;

    line-height: 1.55;

    margin-bottom: 22px;
}


.auth-notice a {

    color: var(--gold);

    font-weight: 600;

    text-decoration: none;

}


.auth-notice a:hover {

    color: var(--gold-light);

    text-decoration: underline;

}


/* =========================================================
   ALERTS
========================================================= */

.auth-alert {

    padding:
        11px
        13px;

    border-radius: 12px;

    font-size: 12px;

    line-height: 1.45;

    margin-bottom: 18px;
}


.auth-alert.error {

    color: #ffaaaa;

    background:
        rgba(239, 119, 119, 0.08);

    border:
        1px solid rgba(239, 119, 119, 0.25);

}


.auth-alert.success {

    color: #a8e5b7;

    background:
        rgba(125, 204, 145, 0.08);

    border:
        1px solid rgba(125, 204, 145, 0.25);

}


/* =========================================================
   GOOGLE BUTTON
========================================================= */

.google-button {

    width: 100%;

    height: 47px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    background: transparent;

    border:
        1px solid rgba(255, 255, 255, 0.16);

    border-radius: 25px;

    color: #eeeeee;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;

}


.google-button:hover {

    background:
        rgba(255, 255, 255, 0.035);

    border-color:
        rgba(255, 255, 255, 0.28);

}


.google-button:active {

    transform: scale(0.99);

}


/* =========================================================
   GOOGLE LETTER
========================================================= */

.google-letter {

    width: 20px;

    height: 20px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;

}


/* =========================================================
   DIVIDER
========================================================= */

.auth-divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin:
        25px
        0;

}


.auth-divider span {

    flex: 1;

    height: 1px;

    background:
        rgba(255, 255, 255, 0.13);

}


.auth-divider small {

    color: #8f8f8f;

    font-size: 10px;

    letter-spacing: 3px;

}


/* =========================================================
   FORM
========================================================= */

.auth-card form {

    width: 100%;

}


/* =========================================================
   FORM GROUP
========================================================= */

.auth-field {

    margin-bottom: 18px;

}


.auth-field label {

    display: block;

    color: #bcbcbc;

    font-size: 13px;

    margin-bottom: 8px;

}


/* =========================================================
   INPUTS
========================================================= */

.auth-field input {

    width: 100%;

    height: 45px;

    padding:
        0
        14px;

    background: var(--input-bg);

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 15px;

    outline: none;

    color: #ffffff;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.auth-field input:hover {

    border-color:
        rgba(255, 255, 255, 0.22);

}


.auth-field input:focus {

    border-color:
        rgba(237, 195, 79, 0.65);

    box-shadow:
        0 0 0 3px
        rgba(237, 195, 79, 0.07);

    background: #0b0b0b;

}


/* =========================================================
   PLACEHOLDER
========================================================= */

.auth-field input::placeholder {

    color: #666;

}


/* =========================================================
   AUTOFILL
========================================================= */

.auth-field input:-webkit-autofill {

    -webkit-text-fill-color: #ffffff;

    box-shadow:
        0 0 0 1000px #080808 inset;

}


/* =========================================================
   PASSWORD WRAPPER
========================================================= */

.password-wrapper {

    position: relative;

}


.password-wrapper input {

    padding-right: 65px;

}


/* =========================================================
   SHOW / HIDE PASSWORD
========================================================= */

.password-wrapper button {

    position: absolute;

    right: 12px;

    top: 50%;

    transform: translateY(-50%);

    background: none;

    border: none;

    color: var(--gold);

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    padding: 4px;

}


.password-wrapper button:hover {

    color: var(--gold-light);

}


/* =========================================================
   MAIN SUBMIT BUTTON
========================================================= */

.auth-submit {

    width: 100%;

    height: 51px;

    border: none;

    border-radius: 27px;

    background:
        linear-gradient(
            180deg,
            var(--gold-light),
            var(--gold)
        );

    color: #050505;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    margin-top: 1px;

    box-shadow:
        0 7px 20px
        rgba(237, 195, 79, 0.10);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;

}


.auth-submit:hover {

    filter: brightness(1.05);

    box-shadow:
        0 9px 28px
        rgba(237, 195, 79, 0.18);

    transform: translateY(-1px);

}


.auth-submit:active {

    transform: translateY(0);

}


/* =========================================================
   TEXT LINKS
========================================================= */

.auth-link {

    display: block;

    width: 100%;

    border: none;

    background: transparent;

    color: #b5b5b5;

    font-size: 13px;

    text-align: center;

    cursor: pointer;

    padding: 0;

    margin-top: 18px;

    transition:
        color 0.2s ease;

}


.auth-link:hover {

    color: var(--gold);

}


/* =========================================================
   BACK TO LOGIN
========================================================= */

.back-login {

    margin-top: 21px;

    color: #bdbdbd;

}


/* =========================================================
   REGISTER GOOGLE
========================================================= */

.register-google {

    margin-top: 20px;

}


/* =========================================================
   SECURITY FOOTER
========================================================= */

.auth-security {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 25px;

    padding-top: 19px;

    border-top:
        1px solid rgba(255, 255, 255, 0.07);

    color: #777;

    font-size: 10px;

    letter-spacing: 0.4px;

}


.auth-security i {

    color: var(--gold-dark);

    font-size: 11px;

}


/* =========================================================
   BUTTON ACCESSIBILITY
========================================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible {

    outline:
        2px solid
        rgba(237, 195, 79, 0.75);

    outline-offset: 3px;

}


/* =========================================================
   DISABLED BUTTON
========================================================= */

button:disabled {

    opacity: 0.55;

    cursor: not-allowed;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .auth-page {

        padding:
            20px
            14px
            40px;

        align-items: flex-start;

    }


    .auth-card {

        max-width: 100%;

        padding:
            28px
            22px
            23px;

        border-radius: 20px;

    }


    .auth-card h1 {

        font-size: 23px;

    }


    .auth-description {

        font-size: 13px;

    }


    .auth-eyebrow {

        font-size: 10px;

        letter-spacing: 4px;

    }


    .auth-notice {

        font-size: 11.5px;

    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .auth-page {

        padding:
            15px
            10px
            30px;

    }


    .auth-card {

        padding:
            25px
            18px
            20px;

    }


    .auth-card h1 {

        font-size: 21px;

    }


    .google-button {

        height: 45px;

    }


    .auth-submit {

        height: 49px;

    }

}


/* =========================================================
   LARGE SCREENS
========================================================= */

@media (min-width: 900px) {

    .auth-page {

        padding-top: 55px;

    }


    .auth-card {

        max-width: 384px;

    }

}