/* ==========================================================
   careerpathatlas — Employer Registration Stylesheet
   File: assets/css/register.css
   Page: Employer Registration
   ========================================================== */

/* 1. DESIGN VARIABLES */
:root {
    --register-primary: #0f766e;
    --register-primary-dark: #0d5f58;
    --register-accent: #0d9488;
    --register-text: #1e293b;
    --register-muted: #475569;
    --register-background: #f8fafc;
    --register-card: #ffffff;
    --register-border: #cbd5e1;
    --register-radius: 12px;
    --register-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    --register-transition: 0.2s ease;
}

/* 2. RESET AND GLOBAL STYLES */
*,
*::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(--register-text);
    background: var(--register-background);
}

img {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--register-accent);
    outline-offset: 3px;
}

/* 3. PAGE BANNER */
.page-banner {
    width: 100%;
    margin: 0;
    padding: clamp(36px, 6vw, 56px) 20px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(
        120deg,
        var(--register-primary),
        var(--register-accent)
    );
    border-radius: 0 0 20px 20px;
}

.page-banner h1 {
    margin: 0 0 10px;
    font-size: clamp(1.7rem, 4vw, 2.35rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.page-banner p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.7;
}

/* 4. MAIN PAGE LAYOUT */
.page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    flex: 1 0 auto;
    margin: 0 auto;
    padding: 36px 20px 48px;
}

/* 5. INFORMATION SECTION */
.info-content {
    width: 100%;
    min-width: 0;
    padding: 28px;
    background: var(--register-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--register-radius);
    box-shadow: var(--register-shadow);
}

.info-content h2 {
    margin: 0 0 14px;
    color: var(--register-primary);
    font-size: clamp(1.3rem, 2.5vw, 1.65rem);
    font-weight: 800;
    line-height: 1.4;
}

.info-content h3 {
    margin: 24px 0 12px;
    color: var(--register-text);
    font-size: 1.12rem;
    font-weight: 750;
    line-height: 1.5;
}

.info-content p {
    margin: 0 0 18px;
    color: var(--register-muted);
    line-height: 1.85;
}

.info-content ul {
    margin: 0;
    padding-left: 24px;
    color: var(--register-muted);
}

.info-content li {
    margin-bottom: 10px;
    padding-left: 3px;
}

.info-content li::marker {
    color: var(--register-primary);
}

/* 6. REGISTRATION FORM CONTAINER */
.form-container {
    width: 100%;
    min-width: 0;
}

.info-box {
    width: 100%;
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
    background: var(--register-card);
    border: 1px solid #e2e8f0;
    border-radius: var(--register-radius);
    box-shadow: var(--register-shadow);
}

/* 7. REGISTRATION FORM */
.form-style {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.form-style label {
    display: block;
    margin: 14px 0 6px;
    color: var(--register-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}

/* 8. INPUT FIELDS */
.form-style input,
.form-style select,
.form-style textarea {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 47px;
    margin: 0;
    padding: 11px 13px;
    color: var(--register-text);
    background: #ffffff;
    border: 1px solid var(--register-border);
    border-radius: 9px;
    font-size: 16px;
    line-height: 1.5;
    transition:
        border-color var(--register-transition),
        box-shadow var(--register-transition);
}

.form-style input::placeholder,
.form-style textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.form-style input:hover,
.form-style select:hover,
.form-style textarea:hover {
    border-color: #94a3b8;
}

.form-style input:focus,
.form-style select:focus,
.form-style textarea:focus {
    border-color: var(--register-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.form-style select {
    cursor: pointer;
}

.form-style textarea {
    min-height: 110px;
    resize: vertical;
}

/* Password fields */
.form-style input[type="password"] {
    letter-spacing: 0.02em;
}

/* 9. TERMS AND PRIVACY POLICY */
.policy-note {
    margin: 20px 0 4px;
    color: var(--register-muted);
    font-size: 0.88rem;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.policy-note a {
    color: var(--register-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--register-transition);
}

.policy-note a:hover {
    color: var(--register-primary-dark);
}

/* 10. CREATE ACCOUNT BUTTON */
.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 49px;
    margin-top: 16px;
    padding: 13px 18px;
    color: #ffffff;
    background: var(--register-primary);
    border: 1px solid var(--register-primary);
    border-radius: 9px;
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    transition:
        background-color var(--register-transition),
        border-color var(--register-transition),
        box-shadow var(--register-transition),
        transform var(--register-transition);
}

.btn-primary:hover {
    color: #ffffff;
    background: var(--register-primary-dark);
    border-color: var(--register-primary-dark);
    box-shadow: 0 5px 14px rgba(15, 118, 110, 0.18);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* 11. ERROR AND SUCCESS MESSAGES */
.error-msg,
.success-msg {
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.error-msg {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.success-msg {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.error-msg a,
.success-msg a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 12. EXISTING ACCOUNT LOGIN LINK */
.login-link {
    margin: 20px 0 0;
    color: var(--register-muted);
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: center;
}

.login-link a {
    color: var(--register-primary);
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--register-transition);
}

.login-link a:hover {
    color: var(--register-primary-dark);
}

/* 13. 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;
    overflow-wrap: anywhere;
    transition: color var(--register-transition);
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-links span {
    color: #64748b;
}

/* 14. TABLET AND SMALL LAPTOPS */
@media (max-width: 900px) {
    .page-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        max-width: 680px;
        padding: 30px 20px 40px;
    }

    .info-content {
        padding: 26px;
    }

    .form-container {
        max-width: 100%;
    }
}

/* 15. MOBILE PHONES */
@media (max-width: 600px) {
    .page-banner {
        padding: 34px 16px;
        border-radius: 0 0 15px 15px;
    }

    .page-banner h1 {
        font-size: 1.65rem;
    }

    .page-banner p {
        font-size: 0.94rem;
    }

    .page-wrapper {
        gap: 20px;
        padding: 22px 13px 32px;
    }

    .info-content {
        padding: 21px 18px;
    }

    .info-content h2 {
        font-size: 1.35rem;
    }

    .info-content p,
    .info-content li {
        font-size: 0.94rem;
    }

    .info-box {
        padding: 21px 17px;
    }

    .form-style label {
        font-size: 0.93rem;
    }

    .form-style input,
    .form-style select,
    .form-style textarea {
        padding: 12px;
        font-size: 16px;
    }

    .btn-primary {
        min-height: 49px;
        padding: 13px 12px;
    }

    .policy-note {
        font-size: 0.86rem;
    }

    .login-link {
        font-size: 0.88rem;
    }

    .site-footer {
        padding: 22px 12px;
    }

    .footer-links {
        gap: 10px;
        font-size: 0.85rem;
    }
}

/* 16. EXTRA-SMALL SCREENS */
@media (max-width: 340px) {
    .page-banner h1 {
        font-size: 1.45rem;
    }

    .page-wrapper {
        padding-right: 9px;
        padding-left: 9px;
    }

    .info-content {
        padding: 17px 13px;
    }

    .info-box {
        padding: 17px 13px;
    }

    .footer-links {
        column-gap: 8px;
    }
}

/* 17. 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;
    }
}













