:root {
    --bg-body: #080c14;
    --panel-dark-bg: linear-gradient(155deg, #0b1329 0%, #111d38 50%, #091326 100%);
    --panel-light-bg: #ffffff;

    --primary-teal: #0d9488;
    --primary-teal-hover: #0f766e;

    --gold-light: #ffd700;
    --gold-main: #f59e0b;
    --gold-glow: rgba(245, 158, 11, 0.45);

    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html, body {
    height: 100%;
}

body.login-body {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(245, 158, 11, 0.12) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(13, 148, 136, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 1080px;
    min-height: 640px;
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
}

/* LEFT PANEL */
.left-panel {
    flex: 1.2;
    background: var(--panel-dark-bg);
    padding: 52px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.left-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 2;
}

.brand-logo-om {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 1.6rem;
    color: #ffd700;
    box-shadow: 0 0 20px var(--gold-glow);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
}

.brand-title {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.brand-title span {
    font-weight: 400;
    color: var(--gold-main);
    font-size: 1rem;
    margin-left: 4px;
}

.giant-logo-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    gap: 22px;
}

.om-rotate-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinning-ring-1 {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(245, 158, 11, 0.35);
    border-top: 2.5px solid var(--gold-light);
    border-bottom: 2.5px solid var(--gold-main);
    animation: rotateClockwise 10s linear infinite;
    box-shadow: 0 0 25px var(--gold-glow);
}

.spinning-ring-2 {
    position: absolute;
    width: 82%;
    height: 82%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 2px solid var(--gold-main);
    animation: rotateCounter 7s linear infinite;
}

.om-character {
    font-family: 'Noto Sans Devanagari', sans-serif;
    font-size: 5.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff176 0%, #ffd700 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 0px 18px rgba(245, 158, 11, 0.85));
    animation: pulseGlow 3s ease-in-out infinite alternate;
    z-index: 5;
    user-select: none;
    line-height: 1;
}

@keyframes rotateClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rotateCounter {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulseGlow {
    0% { filter: drop-shadow(0px 0px 12px rgba(245, 158, 11, 0.6)); transform: scale(0.98); }
    100% { filter: drop-shadow(0px 0px 24px rgba(255, 215, 0, 0.95)); transform: scale(1.02); }
}

.system-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.left-footer {
    color: #64748b;
    font-size: 0.78rem;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RIGHT PANEL */
.right-panel {
    flex: 1;
    background: var(--panel-light-bg);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.form-header {
    margin-bottom: 22px;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.form-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.alert-error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #b91c1c;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.alert-error i {
    margin-top: 2px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-size: 0.92rem;
    color: var(--text-dark);
    outline: none;
    transition: all 0.25s ease;
    background: #f8fafc;
    font-weight: 500;
}

.form-input:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
    background: #ffffff;
}

.input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
}

.captcha-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    gap: 10px;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: 1px;
    white-space: nowrap;
}

.captcha-input {
    width: 80px;
    padding: 8px 10px;
    text-align: center;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 800;
    outline: none;
    color: var(--text-dark);
    background: #ffffff;
}

.captcha-input:focus {
    border-color: var(--primary-teal);
}

.captcha-refresh {
    background: none;
    border: none;
    color: var(--primary-teal);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-signin {
    width: 100%;
    padding: 14px;
    background: var(--primary-teal);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-signin:hover {
    background: var(--primary-teal-hover);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider span {
    padding: 0 12px;
}

.btn-2fa {
    width: 100%;
    padding: 12px 16px;
    background: #f0fdf4;
    border: 1.5px solid #bbf7d0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font: inherit;
}

.btn-2fa:hover {
    background: #dcfce7;
    border-color: #86efac;
}

.fingerprint-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--primary-teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
    flex-shrink: 0;
}

.twofa-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #065f46;
    display: block;
}

.twofa-sub {
    font-size: 0.72rem;
    color: #047857;
    font-weight: 600;
}

@media (max-width: 880px) {
    .login-card {
        flex-direction: column;
        height: auto;
        max-width: 440px;
        margin: 20px;
    }

    .left-panel {
        padding: 32px 28px;
    }

    .giant-logo-container {
        margin: 24px 0;
    }

    .right-panel {
        padding: 32px 28px;
    }
}
