/* ============================================================
   HITAS ERP – Login Page Styles
   ============================================================ */

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

:root {
    --primary:        #7C3AED;
    --primary-dark:   #5B21B6;
    --primary-light:  #A78BFA;
    --accent:         #06B6D4;
    --success:        #10B981;
    --danger:         #EF4444;
    --warning:        #F59E0B;
    --bg:             #0F0A1E;
    --bg2:            #1A1035;
    --card-bg:        rgba(26,16,53,0.90);
    --glass:          rgba(255,255,255,0.05);
    --glass-border:   rgba(255,255,255,0.10);
    --text:           #F1F5F9;
    --text-muted:     #94A3B8;
    --input-bg:       rgba(255,255,255,0.07);
    --input-border:   rgba(255,255,255,0.12);
    --input-focus:    rgba(124,58,237,0.50);
    --radius:         16px;
    --radius-sm:      8px;
    --font:           'Inter', sans-serif;
    --font-nep:       'Mukta', sans-serif;
    --shadow:         0 25px 60px rgba(0,0,0,0.5);
    --transition:     0.3s ease;
}

html, body { width: 100%; height: 100%; }

.login-body {
    font-family: var(--font);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ── Background gradient blobs ── */
.login-body::before, .login-body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: blobPulse 8s ease-in-out infinite alternate;
}
.login-body::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(124,58,237,0.25), transparent 70%);
    top: -150px; left: -150px;
}
.login-body::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.20), transparent 70%);
    bottom: -100px; right: -100px;
    animation-delay: -4s;
}
@keyframes blobPulse {
    from { transform: scale(1) rotate(0deg); }
    to   { transform: scale(1.2) rotate(15deg); }
}

/* ── Particles canvas ── */
.particles {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
}
.particles canvas { width: 100%; height: 100%; }

/* ── Wrapper ── */
.login-wrapper {
    position: relative; z-index: 1;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: min(960px, 95vw);
    min-height: 560px;
    border: 1px solid var(--glass-border);
}

/* ── Left Card ── */
.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 44px;
    flex: 0 0 440px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Brand ── */
.login-brand {
    text-align: center;
    margin-bottom: 12px;
}
.brand-icon {
    width: 70px; height: 70px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    box-shadow: 0 8px 30px rgba(124,58,237,0.4);
    animation: iconFloat 3s ease-in-out infinite alternate;
}
@keyframes iconFloat {
    from { transform: translateY(0); }
    to   { transform: translateY(-6px); }
}
.brand-name {
    font-size: 28px; font-weight: 800;
    background: linear-gradient(135deg, #fff 30%, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}
.brand-sub {
    font-size: 13px; color: var(--text-muted); margin-top: 2px;
}
.brand-date {
    display: inline-block;
    font-family: var(--font-nep);
    font-size: 14px;
    color: var(--primary-light);
    background: rgba(124,58,237,0.15);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(124,58,237,0.3);
    margin-top: 10px;
}

/* ── Alert ── */
.alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.35);
    color: #FCA5A5;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: flex; align-items: center; gap: 8px;
    animation: shakeIn 0.4s ease;
}
@keyframes shakeIn {
    0%,100% { transform: translateX(0); }
    20%,60%  { transform: translateX(-6px); }
    40%,80%  { transform: translateX(6px); }
}

/* ── Form ── */
.login-form { display: flex; flex-direction: column; gap: 18px; margin-top: 4px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
}
.form-group label i { color: var(--primary-light); font-size: 12px; }

.form-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text);
    font-size: 15px;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
    width: 100%;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
    border-color: var(--primary);
    background: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.20);
}

.input-icon-right { position: relative; }
.input-icon-right .form-input { padding-right: 46px; }
.toggle-pass {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted); cursor: pointer;
    font-size: 15px;
    transition: color var(--transition);
}
.toggle-pass:hover { color: var(--primary-light); }

.form-check-row {
    display: flex; align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.checkbox-label {
    display: flex; align-items: center; gap: 7px;
    color: var(--text-muted); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); }
.forgot-link { color: var(--primary-light); text-decoration: none; font-size: 13px; }
.forgot-link:hover { text-decoration: underline; }

/* ── Submit button ── */
.btn-login {
    background: linear-gradient(135deg, var(--primary), #9333EA);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn-login::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.btn-login:hover::before { transform: translateX(100%); }
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124,58,237,0.45);
}
.btn-login:active { transform: translateY(0); }
.btn-text, .btn-loader { display: flex; align-items: center; justify-content: center; gap: 8px; }
.hidden { display: none !important; }

/* ── Footer ── */
.login-footer { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: auto; padding-top: 12px; }
.version { color: #334155; }

/* ── Right Visual Panel ── */
.login-visual {
    flex: 1;
    background: linear-gradient(145deg, var(--primary-dark) 0%, #1E0F50 40%, #0C1A3A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px;
    position: relative;
    overflow: hidden;
}
.login-visual::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.visual-content { position: relative; z-index: 1; }
.visual-content h2 {
    font-size: 38px; font-weight: 800; color: #fff;
    line-height: 1.2; margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.visual-content p {
    font-size: 15px; color: rgba(255,255,255,0.70);
    line-height: 1.7; margin-bottom: 28px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; color: rgba(255,255,255,0.85);
}
.feature-list li i { color: var(--accent); font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-wrapper { flex-direction: column; }
    .login-card { flex: none; padding: 36px 28px; }
    .login-visual { display: none; }
}
