/* ==========================================================
   careerpathatlas — Global Account Login Stylesheet
   File: assets/css/login.css
   Page: Jobseeker and Employer Login
   ========================================================== */

/* 1. GLOBAL DESIGN VARIABLES */
:root {
    --login-primary: #0f766e;
    --login-primary-dark: #0d5f58;
    --login-accent: #0d9488;
    --login-text: #1e293b;
    --login-muted: #475569;
    --login-background: #f8fafc;
    --login-card: #ffffff;
    --login-border: #cbd5e1;
    --login-radius: 12px;
    --login-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    --login-transition: 0.2s ease;
}

/* 2. RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--login-text);
    background: var(--login-background);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--login-accent);
    outline-offset: 3px;
}

/* 3. PAGE BANNER */
.page-banner {
    width: 100%;
    margin: 0;
    padding: clamp(36px, 6vw, 54px) 20px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(
        120deg,
        var(--login-primary),
        var(--login-accent)
    );
    border-radius: 0 0 20px 20px;
}

.page-banner h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.page-banner p {
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.7;
}

/* 4. MAIN CONTENT WRAPPER */
.page-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1 0 auto;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

/* 5. LOGIN SECTION */
.login-section {
    width: 100%;
    max-width: 500px;
    min-width: 0;
    margin: 0 auto;
}

/* 6. LOGIN CARD */
.info-box {
    width: 100%;
    padding: clamp(22px, 4vw, 34px);
    background: var(--login-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--login-radius);
    box-shadow: var(--login-shadow);
}

/* 7. INTRODUCTORY MESSAGE */
.login-info {
    margin: 0 0 24px;
    color: var(--login-muted);
    font-size: 0.97rem;
    line-height: 1.85;
}

/* 8. LOGIN FORM */
.form-style {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-style .form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    margin-bottom: 19px;
}

.form-style label {
    display: block;
    margin-bottom: 7px;
    color: var(--login-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}

/* 9. EMAIL, PASSWORD AND ACCOUNT TYPE */
.form-style input,
.form-style select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    color: var(--login-text);
    background: #ffffff;
    border: 1px solid var(--login-border);
    border-radius: 9px;
    font-size: 16px;
    line-height: 1.5;
    transition:
        border-color var(--login-transition),
        box-shadow var(--login-transition);
}

.form-style input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.form-style input:hover,
.form-style select:hover {
    border-color: #94a3b8;
}

.form-style input:focus,
.form-style select:focus {
    border-color: var(--login-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.form-style select {
    cursor: pointer;
}

.form-style input[type="password"] {
    letter-spacing: 0.02em;
}

/* 10. SIGN-IN BUTTON */
.btn-primary-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 49px;
    margin-top: 4px;
    padding: 13px 18px;
    color: #ffffff;
    background: var(--login-primary);
    border: 1px solid var(--login-primary);
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition:
        background-color var(--login-transition),
        border-color var(--login-transition),
        box-shadow var(--login-transition),
        transform var(--login-transition);
}

.btn-primary-custom:hover {
    background: var(--login-primary-dark);
    border-color: var(--login-primary-dark);
    box-shadow: 0 5px 14px rgba(15, 118, 110, 0.18);
    transform: translateY(-1px);
}

.btn-primary-custom:active {
    transform: translateY(0);
}

.btn-primary-custom:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 11. LOGIN ERROR MESSAGE */
.error-msg {
    margin: 0 0 20px;
    padding: 13px 15px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* 12. REGISTRATION AND PASSWORD-RECOVERY LINKS */
.form-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 23px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    color: var(--login-muted);
    font-size: 0.94rem;
    line-height: 1.7;
    text-align: center;
}

.form-links p {
    margin: 0;
}

.form-links a {
    color: var(--login-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition: color var(--login-transition);
}

.form-links a:hover {
    color: var(--login-primary-dark);
}

/* 13. OPTIONAL ADVERTISEMENT CONTAINERS */
.google-ad-box {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 160px;
    padding: 15px;
    color: #64748b;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: var(--login-radius);
    text-align: center;
    overflow: hidden;
}

.sticky-ad {
    position: sticky;
    top: 20px;
}

/* 14. FOOTER */
.site-footer {
    width: 100%;
    margin-top: auto;
    padding: 24px 16px;
    color: #cbd5e1;
    background: #0f172a;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.footer-links a {
    color: #e2e8f0;
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color var(--login-transition);
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links span {
    color: #64748b;
}

/* 15. TABLET */
@media (max-width: 992px) {
    .page-wrapper {
        padding: 28px 20px 40px;
    }

    .login-section {
        max-width: 520px;
    }
}

/* 16. MOBILE */
@media (max-width: 600px) {
    .page-banner {
        padding: 36px 16px;
        border-radius: 0 0 15px 15px;
    }

    .page-banner h1 {
        font-size: 1.7rem;
    }

    .page-banner p {
        font-size: 0.94rem;
    }

    .page-wrapper {
        padding: 22px 13px 32px;
    }

    .login-section {
        max-width: 100%;
    }

    .info-box {
        padding: 22px 18px;
    }

    .login-info {
        font-size: 0.94rem;
    }

    .form-style .form-group {
        margin-bottom: 17px;
    }

    .form-style label {
        font-size: 0.93rem;
    }

    .form-style input,
    .form-style select {
        min-height: 48px;
        padding: 12px;
        font-size: 16px;
    }

    .btn-primary-custom {
        min-height: 49px;
        padding: 13px 12px;
    }

    .form-links {
        font-size: 0.9rem;
    }

    .site-footer {
        padding: 22px 12px;
    }

    .footer-links {
        gap: 10px;
        font-size: 0.85rem;
    }
}

/* 17. EXTRA-SMALL SCREENS */
@media (max-width: 340px) {
    .page-banner h1 {
        font-size: 1.5rem;
    }

    .page-wrapper {
        padding-right: 9px;
        padding-left: 9px;
    }

    .info-box {
        padding: 18px 13px;
    }

    .footer-links {
        column-gap: 8px;
    }
}

/* 18. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
