/* ============================================================
   GLOBAL RESET & PREMIUM PORTAL BASE STYLES
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary:       #4f46e5; /* Premium Indigo */
    --primary-dark:  #3730a3;
    --primary-light: #e0e7ff;
    --secondary:     #a855f7; /* Vibrant Violet */
    --secondary-light: #f3e8ff;
    --success:       #10b981; /* Emerald */
    --success-light: #d1fae5;
    --warning:       #f59e0b; /* Amber */
    --warning-light: #fef3c7;
    --danger:        #ef4444; /* Rose */
    --danger-light:  #fee2e2;
    --info:          #06b6d4; /* Cyan */
    --info-light:    #ecfeff;
    --text-dark:     #0f172a; /* Slate 900 */
    --text-mid:      #475569;  /* Slate 600 */
    --text-light:    #94a3b8; /* Slate 400 */
    --border:        #e2e8f0;  /* Slate 200 */
    --bg-page:       #f8fafc;  /* Slate 50 */
    --bg-card:       #ffffff;
    --bg-muted:      #f1f5f9;
    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     20px;
    --shadow-sm:     0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.02);
    --shadow-md:     0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -1px rgba(0,0,0,.03);
    --shadow-lg:     0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 25px -5px rgba(79, 70, 229, 0.08), 0 10px 10px -5px rgba(79, 70, 229, 0.03);
    --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.04) 0%, rgba(139, 92, 246, 0.04) 90%), #f8fafc;
    min-height: 100vh;
    height: 100%;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   PORTAL LAYOUT & CONTAINERS
   ============================================================ */

/* Global Wrapper to pad content from edge */
.container {
    max-width: 1000px;
    margin: 40px auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-premium);
    padding: 40px;
    animation: fadeIn 0.4s ease-out;
}

/* Make login/otp/company forms visually small and centered */
.container:has(#enrollmentForm),
.container:has(#otpForm),
.container:has(#loginForm),
.container:has(#companyLoginForm),
.container:has(#companyRegisterForm) {
    max-width: 480px;
    margin: 60px auto;
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Registration form — wide card, no-scroll single-view */
.container:has(#registrationForm) {
    max-width: 960px;
    margin: 12px auto;
    padding: 22px 26px 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-premium);
    max-height: calc(100vh - 24px);
    overflow: hidden;
}

.registration-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 18px;
    align-items: start;
}

.info-panel {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.96) 100%);
    border: 1px solid rgba(79, 70, 229, 0.12);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
}

.panel-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.panel-badge {
    display: inline-flex;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(79, 70, 229, 0.12);
    padding: 7px 11px;
    border-radius: 999px;
    width: fit-content;
}

.info-panel h2 {
    color: var(--text-dark);
    font-size: 22px;
    line-height: 1.25;
    margin: 0;
}

.panel-copy {
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 13px;
    margin-bottom: 18px;
}

.panel-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    color: var(--text-mid);
    font-size: 13px;
}

.panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.panel-list li i {
    color: var(--primary);
    margin-top: 4px;
    min-width: 18px;
}

.panel-note {
    margin-top: 18px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border-radius: var(--radius-md);
    border: 1px solid rgba(79, 70, 229, 0.08);
}

.panel-note strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.panel-note p {
    margin: 0;
    color: var(--text-mid);
    line-height: 1.7;
    font-size: 14px;
}

.form-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-row--info {
    align-items: flex-start;
}

.form-group--full {
    margin-bottom: 0;
}

.info-box--compact {
    margin-bottom: 0;
    align-self: flex-end;
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 22px;
}

.btn-submit {
    width: 100%;
}

.login-cta {
    margin-top: 20px;
    text-align: left;
    color: var(--text-mid);
    font-size: 14px;
}

.login-cta .link {
    color: var(--primary);
    font-weight: 700;
}

.page-footer {
    margin-top: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-mid);
    font-size: 13px;
    padding-top: 14px;
}
.page-footer img {
    height: 28px;
    width: auto;
    display: block;
    border-radius: 6px;
}
.page-footer strong {
    color: var(--primary);
}

@media (max-width: 880px) {
    .container:has(#registrationForm) {
        padding: 28px 24px 24px;
    }
    .registration-card {
        grid-template-columns: 1fr;
    }
    .info-panel {
        order: 2;
        padding: 24px;
    }
    .form-panel {
        order: 1;
    }
}

@media (max-width: 640px) {
    .container:has(#registrationForm) {
        margin: 20px 16px;
    }
    h1 {
        font-size: 22px;
    }
    .panel-header {
        gap: 10px;
    }
    .info-panel,
    .form-panel {
        padding: 22px 18px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-row--info {
        grid-template-columns: 1fr;
    }
    .info-box--compact {
        align-self: stretch;
    }
}

/* Adjust dashboard pages to be wider */
.container:has(.dash-wrap),
.container:has(#profileForm),
.container:has(#candidatesList),
.container:has(.table-scroll-wrapper) {
    max-width: 1040px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 24px auto 60px auto;
}

/* Authentication pages layout */
.login-wrap {
    width: 100%;
    max-width: 480px;
    margin: 60px auto;
    padding: 0 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    padding: 40px 36px;
    animation: fadeIn 0.4s ease-out;
}

/* Top bar layouts for portal views */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 {
    color: var(--text-dark);
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-heading {
    margin-bottom: 18px;
}

h1 .page-icon {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    color: var(--text-mid);
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 500;
}

/* ============================================================
   FORM SECTIONS
   ============================================================ */
.form-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
}

.form-section h2 {
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-section h3 {
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-section h2 i {
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.form-group:last-child { margin-bottom: 0; }

/* ============================================================
   LABELS & INPUTS
   ============================================================ */
label {
    color: var(--text-mid);
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

label i {
    color: var(--primary);
    font-size: 12px;
    width: 14px;
}

.required { color: var(--danger); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="url"],
input[type="number"],
select,
textarea {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-card);
    transition: var(--transition);
    width: 100%;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

input.input-error,
select.input-error,
textarea.input-error {
    border-color: var(--danger) !important;
}

input.input-error:focus,
select.input-error:focus,
textarea.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

input[readonly],
input[disabled] {
    background: var(--bg-muted);
    color: var(--text-mid);
    cursor: not-allowed;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

small {
    color: var(--text-light);
    font-size: 11px;
    margin-top: 4px;
    display: inline-block;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-submit {
    padding: 11px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.btn-reset {
    padding: 11px 24px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-mid);
}

.btn-reset:hover { background: var(--bg-muted); }

.btn-add {
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-add:hover {
    background: var(--primary);
    color: white;
}

.btn-remove {
    padding: 6px 12px;
    background: var(--danger-light);
    color: var(--danger);
    border: 1.5px solid var(--danger);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.logout-btn-dark {
    padding: 8px 16px;
    background: var(--bg-card);
    color: var(--text-mid);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.logout-btn-dark:hover {
    background: var(--danger-light);
    color: var(--danger);
    border-color: var(--danger);
}

.form-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

/* ============================================================
   INFO / ALERT BOXES & TOASTS
   ============================================================ */
.info-box {
    background: var(--info-light);
    border-left: 4px solid var(--info);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: #0e7490;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-box i { margin-top: 1px; flex-shrink: 0; }

.info-box.warning {
    background: var(--warning-light);
    border-color: var(--warning);
    color: #92400e;
}

.info-box.success {
    background: var(--success-light);
    border-color: var(--success);
    color: #065f46;
}

.message {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13px;
    display: none;
    align-items: center;
    gap: 8px;
    animation: slideUp 0.2s ease-out;
}

.message.success {
    background: var(--success-light);
    color: #065f46;
    border: 1.5px solid #6ee7b7;
    display: flex;
}

.message.error {
    background: var(--danger-light);
    color: #991b1b;
    border: 1.5px solid #fca5a5;
    display: flex;
}

/* ============================================================
   CARDS & GRID LAYOUT
   ============================================================ */
.info-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.info-card h2 {
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   PORTAL ACTION & FIELD CARDS
   ============================================================ */
.field-card {
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 30px 20px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.field-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.2) !important;
}

.field-card:active { transform: translateY(-1px); }

.field-card .field-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
    opacity: .95;
}

.field-card h3 {
    margin: 0 0 6px 0;
    font-size: 1.2em;
    font-weight: 800;
}

.field-card p {
    margin: 0;
    opacity: .88;
    font-size: .85em;
}

.action-card {
    padding: 20px 16px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

.action-card .action-icon {
    font-size: 1.5em;
    margin-bottom: 4px;
}

.action-card .action-title {
    font-weight: 800;
    font-size: 14px;
}

.action-card .action-desc {
    font-size: 12px;
    opacity: .88;
}

/* ============================================================
   EDUCATION / WORK ENTRIES
   ============================================================ */
.education-entry,
.work-entry {
    padding: 16px 20px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    position: relative;
    transition: var(--transition);
}

.education-entry:hover,
.work-entry:hover {
    border-color: var(--primary);
    background: white;
    box-shadow: var(--shadow-sm);
}

/* ============================================================
   CODE & DATA DISPLAYS
   ============================================================ */
.code-display {
    background: var(--primary-light);
    border: 2px dashed var(--primary);
    padding: 14px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--primary-dark);
    margin: 14px 0;
    font-family: 'Courier New', monospace;
}

/* ============================================================
   NOTIFICATION BANNER (SCROLLER)
   ============================================================ */
.notification-banner {
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
}

.notification-banner.success {
    background: linear-gradient(90deg, var(--success) 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16,185,129,.2);
}

.notification-banner.danger {
    background: linear-gradient(90deg, var(--danger) 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239,68,68,.2);
}

.notification-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left 25s linear infinite;
    font-size: 13px;
    font-weight: 700;
    color: white;
    padding-left: 100%;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================================
   PORTAL STATS CARD
   ============================================================ */
.stat-box {
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.stat-box .stat-value {
    font-size: 1.8em;
    font-weight: 800;
    color: var(--primary);
}

.stat-box .stat-label {
    color: var(--text-mid);
    font-size: 12px;
    margin-top: 4px;
    font-weight: 600;
}

/* ============================================================
   PORTAL NAVBAR HEADER
   ============================================================ */
.navbar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px -4px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 10px;
}

.nav-brand {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-brand::before {
    content: '\f233'; /* Server/Portal icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-mid);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover {
    background: var(--bg-muted);
    color: var(--text-dark);
}

.nav-links a[style*="color: #667eea"] {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
}

/* ============================================================
   PORTAL TABLES & SCROLLER
   ============================================================ */
.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

/* Ensure tables use intrinsic width so horizontal scrollbar appears when needed */
.table-scroll-wrapper table {
    width: max-content;
    min-width: 100%;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

th {
    background: var(--bg-page);
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-mid);
    border-bottom: 1.5px solid var(--border);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: rgba(248, 250, 252, 0.8);
}

/* ============================================================
   LOADING SPINNERS & BADGES
   ============================================================ */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(79, 70, 229, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    vertical-align: middle;
}

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

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 2.5em;
    margin-bottom: 12px;
    display: block;
    opacity: .4;
    color: var(--primary);
}

.empty-state p { font-size: 14px; font-weight: 600; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.pill-it { 
    background: #e0f2fe; 
    color: #0369a1; 
    border-color: #bae6fd;
}

.pill-civil { 
    background: #fef3c7; 
    color: #b45309; 
    border-color: #fde68a;
}

/* ============================================================
   ANIMATIONS & TRANSITIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ============================================================
   RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 768px) {
    body { padding: 0; }

    .container {
        margin: 0;
        border: none;
        border-radius: 0;
        padding: 24px 16px;
        box-shadow: none;
    }

    .container:has(#registrationForm),
    .container:has(#enrollmentForm),
    .container:has(#otpForm),
    .container:has(#loginForm),
    .container:has(#companyLoginForm),
    .container:has(#companyRegisterForm) {
        margin: 0;
        padding: 28px 16px;
        border: none;
        border-radius: 0;
        backdrop-filter: none;
        background: white;
    }

    h1 { font-size: 21px; }

    .form-row { grid-template-columns: 1fr; gap: 12px; }
    .form-actions { flex-direction: column; }
    .btn-submit, .btn-reset { width: 100%; }

    .navbar {
        padding: 12px 16px;
    }

    .nav-brand { font-size: 14px; }
    .nav-links a { font-size: 12px; padding: 6px 10px; }
}

