/* =========================================================
   CAREERGAP LOGIN
========================================================= */

:root {

    --butter: #FFF8E1;

    --butter-deep: #F8F0D4;

    --pistachio: #C6D8A7;

    --pistachio-light: #E8EFD9;

    --pistachio-soft: #F1F4E7;

    --olive: #4B6043;

    --olive-dark: #354832;

    --olive-soft: #65775D;

    --cream: #FFFCF2;

    --white: #FFFFFF;

    --border: rgba(75, 96, 67, 0.14);

    --shadow-pop:
        0 18px 45px rgba(75, 96, 67, 0.12);

    --radius-lg: 28px;

    --radius-md: 18px;

}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}


html {

    min-height: 100%;

}


body {

    min-height: 100vh;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--butter);

    color: var(--olive-dark);

}


button,
input {

    font: inherit;

}


button {

    cursor: pointer;

}


a {

    color: inherit;

    text-decoration: none;

}


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

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 40px 20px;

    position: relative;

    overflow: hidden;

}


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

.login-card {

    width: min(460px, 100%);

    padding: 46px;

    border-radius: var(--radius-lg);

    background: var(--cream);

    border: 1px solid var(--border);

    box-shadow: var(--shadow-pop);

    position: relative;

    z-index: 2;

}


/* =========================================================
   BRAND
========================================================= */

.brand {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 1.45rem;

    font-weight: 800;

    color: var(--olive-dark);

}


.brand-logo {

    width: 30px;

    height: 30px;

    flex-shrink: 0;

    overflow: visible;

    transition: transform 0.25s ease;

}

.brand-logo-ring {

    fill: none;

    stroke: var(--olive-dark);

    stroke-width: 7;

    stroke-linecap: round;

}

.brand-logo-track {

    fill: none;

    stroke-linecap: round;

    stroke-dasharray: 44.3 1000;

    stroke-dashoffset: 0;

}

.brand-logo-track-edge {

    stroke: var(--olive);

    stroke-width: 8.8;

}

.brand-logo-track-fill {

    stroke: var(--pistachio);

    stroke-width: 5.2;

}

.brand-logo.is-tracing .brand-logo-track {

    animation: brand-logo-trace 2.6s cubic-bezier(0.45, 0, 0.55, 1) 1;

}

@keyframes brand-logo-trace {

    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: -955.7;
    }

}

@media (prefers-reduced-motion: reduce) {

    .brand-logo.is-tracing .brand-logo-track {
        animation: none;
    }

}


.brand:hover .brand-logo {

    transform:
        rotate(-8deg)
        translateY(-2px);

}


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

.login-heading {

    margin-top: 55px;

}


.eyebrow {

    font-size: 0.72rem;

    font-weight: 700;

    letter-spacing: 0.22em;

    color: var(--olive);

}


.login-heading h1 {

    margin-top: 13px;

    font-size: clamp(3rem, 9vw, 4.5rem);

    line-height: 0.96;

    letter-spacing: -0.055em;

    color: var(--olive-dark);

}


.login-description {

    max-width: 340px;

    margin-top: 20px;

    color: var(--olive-soft);

    font-size: 0.95rem;

}


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

.login-form {

    margin-top: 38px;

}


.form-field + .form-field {

    margin-top: 22px;

}


.form-field label {

    display: block;

    margin-bottom: 8px;

    font-size: 0.82rem;

    font-weight: 750;

    color: var(--olive-dark);

}


.password-label {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

}


.password-label label {

    margin-bottom: 8px;

}


.password-label a {

    margin-bottom: 8px;

    font-size: 0.75rem;

    font-weight: 700;

    color: var(--olive-soft);

    transition: color 0.2s ease;

}


.password-label a:hover {

    color: var(--olive);

}


.form-field input {

    width: 100%;

    padding: 15px 17px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--white);

    color: var(--olive-dark);

    outline: none;

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

}


.form-field input::placeholder {

    color: rgba(75, 96, 67, 0.42);

}


.form-field input:focus {

    border-color: var(--pistachio);

    box-shadow:
        0 0 0 4px
        rgba(198, 216, 167, 0.25);

}

.form-hint {
    margin-top: 8px;

    color: var(--olive-soft);

    font-size: 0.78rem;
    line-height: 1.4;
}

.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap input {
    width: 100%;
    padding-right: 52px;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 40px;
    height: 40px;

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

    transform: translateY(-50%);

    border: none;
    border-radius: 10px;

    background: transparent;
    color: var(--olive-soft);

    padding: 0;
    cursor: pointer;

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

.password-toggle:hover {
    background: var(--pistachio-soft);
    color: var(--olive);
}

.password-toggle:focus-visible {
    outline: 3px solid
        rgba(198, 216, 167, 0.5);

    outline-offset: 2px;
}

.password-eye {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-eye.hidden {
    display: none;
}

/* =========================================================
   PASSWORD RECOVERY
   ========================================================= */

.hidden {
    display: none !important;
}


.recovery-status {

    margin-top: 18px;

    font-size: 0.82rem;

    font-weight: 650;

    color: var(--olive-soft);

}


.recovery-status.success {

    color: var(--olive);

}


.recovery-status.error {

    color: #a45747;

}


/* =========================================================
   LOGIN BUTTON
   ========================================================= */

.login-button {

    width: 100%;

    margin-top: 30px;

    padding: 17px 20px;

    border: none;

    border-radius: 16px;

    background: var(--olive);

    color: var(--white);

    font-weight: 800;

    box-shadow:
        0 12px 30px
        rgba(75, 96, 67, 0.14);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.login-button span {

    margin-left: 12px;

    font-size: 1.15rem;

}


.login-button:hover {

    transform: translateY(-2px);

    box-shadow:
        0 18px 35px
        rgba(75, 96, 67, 0.19);

}


.login-button:focus-visible {

    outline: 3px solid
        rgba(198, 216, 167, 0.5);

    outline-offset: 3px;

}


/* =========================================================
   SIGN UP
========================================================= */

.signup-prompt {

    display: flex;

    justify-content: center;

    gap: 5px;

    margin-top: 25px;

    font-size: 0.8rem;

    color: var(--olive-soft);

}


.signup-prompt a {

    font-weight: 800;

    color: var(--olive);

}


.signup-prompt a:hover {

    text-decoration: underline;

}


/* =========================================================
   BACK LINK
========================================================= */

.back-link {

    display: block;

    width: fit-content;

    margin: 30px auto 0;

    font-size: 0.78rem;

    font-weight: 700;

    color: var(--olive-soft);

    transition:
        color 0.2s ease,
        transform 0.2s ease;

}


.back-link:hover {

    color: var(--olive);

    transform: translateX(-2px);

}


.back-link-forward:hover {

    transform: translateX(2px);

}


/* =========================================================
   DECORATION
========================================================= */

.login-decoration {

    position: absolute;

    inset: 0;

    pointer-events: none;

    z-index: 1;

}


.leaf-dot {

    position: absolute;

    display: block;

    width: 110px;

    height: 110px;

    border-radius: 70% 30% 70% 30%;

    background: var(--pistachio);

    opacity: 0.28;

}


.leaf-dot-one {

    top: 12%;

    left: 8%;

    transform: rotate(28deg);

}


.leaf-dot-two {

    right: 8%;

    bottom: 14%;

    width: 150px;

    height: 150px;

    transform: rotate(-35deg);

}


.leaf-dot-three {

    right: 17%;

    top: 13%;

    width: 45px;

    height: 45px;

    opacity: 0.2;

    transform: rotate(15deg);

}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 600px) {

    .login-page {

        padding: 25px 16px;

        align-items: flex-start;

    }


    .login-card {

        margin-top: 20px;

        padding: 32px 24px;

    }


    .login-heading {

        margin-top: 42px;

    }


    .login-heading h1 {

        font-size: 3.2rem;

    }


    .login-decoration {

        display: none;

    }

}
