:root {
    --bg-dark: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(15, 23, 42, 0.6);
    --input-border: rgba(255, 255, 255, 0.12);
    --input-focus: #3b82f6;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary-accent: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --radius-lg: 18px;
    --radius-md: 10px;
}

/* Reset & Native System Typography */
* {
    box-sizing: border-box;
}

body.login-body {
    background-color: var(--bg-dark);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background Ambient Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    pointer-events: none;
}

.bg-glow-1 {
    width: 350px;
    height: 350px;
    background: rgba(37, 99, 235, 0.25);
    top: -50px;
    right: -50px;
}

.bg-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(147, 51, 234, 0.15);
    bottom: -100px;
    left: -100px;
}

/* Layout Container */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

/* Glassmorphism Card */
.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Header & Brand */
.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-badge {
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: #60a5fa;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.brand-title {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.subtitle {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}

/* Form Styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.form-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 15px;
    width: 100%;
    direction: ltr;
    text-align: left;
    transition: all 0.2s ease-in-out;
}

.form-control::placeholder {
    color: #64748b;
}

.form-control:focus {
    background-color: rgba(15, 23, 42, 0.85);
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
    outline: none;
}

/* Submit Button */
.btn-submit {
    background: var(--primary-gradient);
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    background: var(--primary-hover);
    color: #ffffff;
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Footer */
.login-footer {
    margin-top: 32px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.copyright {
    font-size: 12px;
    color: #64748b;
}

/* Responsive Breakpoints */
@media (max-width: 480px) {
    .login-card {
        padding: 28px 20px;
    }
    
    .brand-title {
        font-size: 22px;
    }
}