/* =============================================================================
   Auth Pages CSS — ported verbatim from original /software/index.php <style>.
   এক সুতাও change হয়নি — original design ১০০% preserved।
   ============================================================================= */

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

.auth-body {
    font-family: 'Inter', -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    overflow: hidden;
    position: relative;
}

.bg-grid {
    position: fixed; inset: 0; z-index: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(99,102,241,.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(139,92,246,.1) 0%, transparent 50%);
}
.bg-grid::before {
    content: '';
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.orb {
    position: fixed; border-radius: 50%; filter: blur(80px); opacity: .4;
    animation: float 8s ease-in-out infinite;
}
.orb-1 { width: 300px; height: 300px; background: #6366f1; top: -100px; left: -50px; }
.orb-2 { width: 250px; height: 250px; background: #8b5cf6; bottom: -80px; right: -60px; animation-delay: 3s; }
.orb-3 { width: 200px; height: 200px; background: #4f46e5; top: 50%; left: 60%; animation-delay: 5s; opacity: .2; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(.95); }
}

.login-card {
    position: relative; z-index: 10;
    width: 100%; max-width: 420px; margin: 20px;
    background: rgba(30, 41, 59, .7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 44px 40px;
    box-shadow: 0 25px 60px rgba(0,0,0,.3);
}

.brand { text-align: center; margin-bottom: 32px; }
.brand-icon {
    width: 64px; height: 64px; margin: 0 auto 16px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 18px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 900; color: #fff;
    box-shadow: 0 8px 24px rgba(79,70,229,.4);
}
.brand-name { font-size: 22px; font-weight: 800; color: #f1f5f9; letter-spacing: -.5px; }
.brand-sub { font-size: 14px; color: #64748b; margin-top: 4px; font-weight: 500; }

.page-title {
    text-align: center; font-size: 18px; font-weight: 700; color: #e2e8f0;
    margin-bottom: 8px;
}
.page-desc {
    text-align: center; font-size: 13px; color: #64748b; margin-bottom: 28px; line-height: 1.5;
}

.form-group { margin-bottom: 18px; }
.form-label {
    display: block; font-size: 13px; font-weight: 600; color: #94a3b8;
    margin-bottom: 8px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
    position: absolute; left: 14px; color: #475569; font-size: 15px;
    pointer-events: none; z-index: 2;
}
.form-input {
    width: 100%; padding: 13px 14px 13px 42px;
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 12px; color: #e2e8f0;
    font-size: 14px; font-family: inherit; outline: none;
    transition: all .2s;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
    background: rgba(255,255,255,.08);
}

.toggle-pass {
    position: absolute; right: 14px; background: none; border: none;
    color: #475569; cursor: pointer; font-size: 15px; padding: 4px;
    z-index: 2; transition: color .15s;
}
.toggle-pass:hover { color: #94a3b8; }

.otp-wrap {
    display: flex; gap: 10px; justify-content: center; margin-bottom: 20px;
}
.otp-input {
    width: 48px; height: 56px; text-align: center;
    background: rgba(255,255,255,.05);
    border: 1.5px solid rgba(255,255,255,.1);
    border-radius: 12px; color: #e2e8f0;
    font-size: 22px; font-weight: 700; font-family: inherit; outline: none;
    transition: all .2s;
}
.otp-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
    background: rgba(255,255,255,.08);
}

.btn-submit {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700; font-family: inherit;
    cursor: pointer; transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover {
    box-shadow: 0 6px 24px rgba(79,70,229,.4);
    transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }

.form-footer { text-align: center; margin-top: 22px; }
.form-link {
    color: #818cf8; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: color .15s;
}
.form-link:hover { color: #a5b4fc; }
.form-divider { color: #334155; margin: 0 8px; }

.alert {
    padding: 12px 16px; border-radius: 12px; font-size: 13px;
    font-weight: 500; margin-bottom: 20px;
    display: flex; align-items: center; gap: 10px;
    animation: fadeIn .3s ease;
}
.alert-error {
    background: rgba(239,68,68,.12); color: #fca5a5;
    border: 1px solid rgba(239,68,68,.2);
}
.alert-success {
    background: rgba(34,197,94,.12); color: #86efac;
    border: 1px solid rgba(34,197,94,.2);
}

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

.resend-wrap {
    text-align: center; margin-top: 14px; font-size: 13px; color: #64748b;
}
.resend-btn {
    background: none; border: none; color: #818cf8;
    font-weight: 600; cursor: pointer; font-size: 13px; font-family: inherit;
}
.resend-btn:disabled { color: #475569; cursor: not-allowed; }

.login-footer {
    text-align: center; margin-top: 28px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.login-footer p { font-size: 12px; color: #475569; }

/* Language switch — small addition, sits under footer */
.auth-lang-switch {
    text-align: center; margin-top: 10px;
    font-size: 11px; color: #475569;
}
.auth-lang-switch a {
    color: #818cf8; text-decoration: none; font-weight: 600; margin: 0 4px;
}
.auth-lang-switch a:hover { color: #a5b4fc; }

@media (max-width: 440px) {
    .login-card { padding: 32px 24px; margin: 12px; }
    .otp-input { width: 42px; height: 50px; font-size: 20px; }
}
