/* ==========================================================================
   LOGIN SCREEN STYLES - HR HUB AUTH
   ========================================================================== */

*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

:root {
    --violet: #6d28d9;
    --violet-light: #7c3aed;
    --violet-dark: #4c1d95;
    --violet-soft: rgba(109, 40, 217, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #f5f3ff;
}

.login-main-container {
    display: flex;
    min-height: calc(100vh - 80px);
    width: 100%;
    margin-top: 80px;
}

/* ===== ANIMATED LEFT PANEL ===== */
.panel-left {
    flex: 1.1;
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Animated orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 400px; height: 400px; background: #8b5cf6; top: -100px; right: -100px; animation-delay: 0s; }
.orb-2 { width: 300px; height: 300px; background: #a78bfa; bottom: -80px; left: -80px; animation-delay: -3s; }
.orb-3 { width: 200px; height: 200px; background: #c4b5fd; top: 40%; left: 30%; animation-delay: -5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Grid pattern overlay */
.panel-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.panel-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 3rem;
    max-width: 480px;
}

.logo-box {
    width: 90px; 
    height: 90px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform 0.3s ease;
}

.logo-box:hover { 
    transform: scale(1.05) rotate(3deg); 
}

.logo-box img { 
    height: 55px; 
    filter: brightness(0) invert(1); 
}

.panel-left-content h1 {
    font-size: 3.25rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 1rem;
}

.panel-left-content h1 em {
    font-style: normal;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-left-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: left;
}

.feature-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.1rem;
    transition: all 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    background: rgba(255,255,255,0.13);
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
}

.feature-icon {
    width: 38px; 
    height: 38px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: white;
}

.feature-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

/* ===== RIGHT PANEL — FORM ===== */
.panel-right {
    width: 520px;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3.5rem;
    position: relative;
    box-shadow: -20px 0 60px rgba(109,40,217,0.08);
}

/* Top decorative accent */
.panel-right::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6d28d9, #7c3aed, #a78bfa);
}

.form-wrap { 
    width: 100%; 
    max-width: 380px; 
}

.form-header { 
    margin-bottom: 2rem; 
}

.form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--violet-soft);
    color: var(--violet);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.form-eyebrow i { 
    font-size: 0.9rem; 
}

.form-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
}

.form-subtitle { 
    font-size: 0.9rem; 
    color: #64748b; 
    font-weight: 500; 
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-danger { background: #fef2f2; color: #dc2626; }
.alert-success { background: #f0fdf4; color: #16a34a; }
.alert i { font-size: 1.2rem; flex-shrink: 0; }

/* Form fields */
.field-group { 
    margin-bottom: 1.25rem; 
}

.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.field-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}

.field-wrap:focus-within {
    border-color: var(--violet);
    background: white;
    box-shadow: 0 0 0 4px rgba(109,40,217,0.1);
}

.field-icon {
    padding: 0 0.75rem;
    color: #94a3b8;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: color 0.2s;
}

.field-wrap:focus-within .field-icon { 
    color: var(--violet); 
}

.field-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    padding: 0.8rem 0;
    outline: none;
}

.field-input::placeholder { 
    color: #c4c9d4; 
}

.btn-toggle-pw {
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    padding: 0 0.75rem;
    font-size: 1.15rem;
    transition: color 0.2s;
}

.btn-toggle-pw:hover { 
    color: var(--violet); 
}

/* Remember row */
.row-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
}

.check-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.check-wrap input[type="checkbox"] {
    width: 17px; 
    height: 17px;
    accent-color: var(--violet);
    border-radius: 4px;
    cursor: pointer;
}

.check-wrap span {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    user-select: none;
}

/* Submit button */
.btn-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem;
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(109,40,217,0.35);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(109,40,217,0.45);
}

.btn-submit:hover::before { 
    opacity: 1; 
}

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

.btn-submit i { 
    font-size: 1.2rem; 
}

/* Footer */
.form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:hover { 
    color: var(--violet); 
}

/* Bottom branding */
.form-brand {
    margin-top: 1.25rem;
    font-size: 0.75rem;
    color: #cbd5e1;
    text-align: center;
}

.form-brand strong { 
    color: #94a3b8; 
}

/* Responsive */
@media (max-width: 1100px) {
    .panel-right { width: 460px; padding: 2.5rem; }
}

@media (max-width: 768px) {
    body { overflow: auto; }
    .panel-left { display: none; }
    .panel-right { width: 100%; padding: 2rem 1.5rem; box-shadow: none; }
}
