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

/* ── Smooth theme transition ── */
body, .login-card, .form-control, .btn-login, .welcome-title, .welcome-sub,
.form-group label, .remember-me span, .forgot-link, .error-box {
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    min-height: 100vh;
    background: #0a1628;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0, 174, 239, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 100, 180, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 60, 120, 0.1) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 48px 44px;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Logo */
.logo-area {
    text-align: center;
    margin-bottom: 36px;
}

.logo-area img {
    height: 60px;
    width: auto;
}

/* Welcome text */
.welcome-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00AEEF;
    margin-bottom: 8px;
}

.welcome-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.welcome-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 32px;
}

/* Error messages */
.error-box {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

.error-box p {
    color: #ff6b6b;
    font-size: 13px;
    margin: 0;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 1;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 13px 16px 13px 44px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-control:focus {
    border-color: rgba(0, 174, 239, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

/* Password toggle */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    padding: 4px;
    display: flex;
    align-items: center;
    z-index: 1;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Remember me & Forgot password row */
.form-extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #00AEEF;
    cursor: pointer;
}

.remember-me span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.forgot-link {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #00AEEF;
}

/* Submit button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #00AEEF 0%, #0088cc 100%);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
}

.btn-login:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

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

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ════════════════════════
   THEME TOGGLE BUTTON
════════════════════════ */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.theme-toggle:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ════════════════════════
   LIGHT THEME
════════════════════════ */
body.light-theme {
    background: #f0f4f8;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(0,174,239,0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,100,180,0.05) 0%, transparent 40%);
}

body.light-theme .login-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

body.light-theme .welcome-title {
    color: #1a2332;
}

body.light-theme .welcome-sub {
    color: rgba(0,0,0,0.45);
}

body.light-theme .form-group label {
    color: rgba(0,0,0,0.65);
}

body.light-theme .form-control {
    background: #f5f7fa;
    border: 1px solid rgba(0,0,0,0.12);
    color: #1a2332;
}

body.light-theme .form-control::placeholder {
    color: rgba(0,0,0,0.3);
}

body.light-theme .form-control:focus {
    border-color: rgba(0,174,239,0.6);
    background: #fff;
}

body.light-theme .input-icon {
    color: rgba(0,0,0,0.45);
}

body.light-theme .toggle-password {
    color: rgba(0,0,0,0.3);
}
body.light-theme .toggle-password:hover { color: rgba(0,0,0,0.6); }

body.light-theme .remember-me span {
    color: rgba(0,0,0,0.5);
}

body.light-theme .forgot-link {
    color: rgba(0,0,0,0.5);
}
body.light-theme .forgot-link:hover { color: #00AEEF; }

body.light-theme .error-box {
    background: rgba(220,53,69,0.07);
    border-color: rgba(220,53,69,0.2);
}
body.light-theme .error-box p { color: #c0392b; }

/* Toggle button in light theme */
body.light-theme .theme-toggle {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.12);
    color: rgba(0,0,0,0.55);
}
body.light-theme .theme-toggle:hover {
    background: rgba(0,0,0,0.1);
    color: #1a2332;
}
