/* ==========================================================================
   Modern Custom Glass & Form Design System
   Politeknik Semen Indonesia - Job Fair Vokasi
   ========================================================================== */

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --secondary: #10b981;
    --secondary-hover: #059669;
    --secondary-light: #ecfdf5;
    --dark: #0f172a;
    --slate-800: #1e293b;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --light: #f8fafc;
    --white: #ffffff;
    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-card: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px 1px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
}

/* Base resets & utilities */
.auth-wrapper {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
                radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.06) 0px, transparent 50%),
                #f8fafc;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-card-wide {
    max-width: 520px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #eef2ff;
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--slate-800);
    letter-spacing: -0.5px;
    margin: 0 0 8px 0;
    line-height: 1.25;
}

.auth-subtitle {
    color: var(--slate-500);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

/* Role Selector Pills */
.role-pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #f1f5f9;
    padding: 5px;
    border-radius: var(--radius-md);
    margin-bottom: 26px;
    border: 1px solid #e2e8f0;
}

.role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--slate-500);
    transition: all 0.2s ease;
}

.role-pill:hover {
    color: var(--slate-800);
}

.role-pill.active {
    background: #ffffff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.role-pill.active.company {
    color: var(--secondary-hover);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--slate-800);
    margin-bottom: 7px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: var(--slate-400);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--slate-800);
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input.with-left-icon {
    padding-left: 44px;
}

.form-input.with-right-btn {
    padding-right: 44px;
}

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

.form-input.input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.field-error-msg {
    margin-top: 6px;
    font-size: 0.82rem;
    color: #dc2626;
    display: flex;
    align-items: center;
    gap: 5px;
}

.input-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--slate-400);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.input-toggle-btn:hover {
    color: var(--slate-600);
}

/* Primary Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: #ffffff !important;
    border: none;
    padding: 13px 20px;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 6px;
}

.btn-submit.btn-company {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-hover) 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.btn-submit.btn-company:hover {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Alert Boxes */
.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 22px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.auth-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* Auth Footer */
.auth-bottom-links {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 0.9rem;
    color: var(--slate-500);
}

.auth-bottom-links a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s;
}

.auth-bottom-links a:hover {
    text-decoration: underline;
}

.role-switcher-banner {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 18px;
    font-size: 0.86rem;
    color: var(--slate-600);
    text-align: center;
}

.role-switcher-banner a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.role-switcher-banner a:hover {
    text-decoration: underline;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--slate-400);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.15s;
}

.back-home-link:hover {
    color: var(--slate-800);
}