
:root {
    --bg-0: #0b1220;
    --bg-1: #0f1b2d;

    --primary: #3b82f6;
    --primary-dark: #1e40af;

    --accent: #38bdf8;

    --text: #e2e8f0;
    --muted: #94a3b8;

    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(148, 163, 184, 0.2);

    --success: #22c55e;
    --error: #ef4444;
}

/* 1. Global & Background */
* {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body.dashboard-body.login-page {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    overflow-x: hidden;

    background-color: var(--bg-0);
    background-image:
        radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.25) 0px, transparent 55%),
        radial-gradient(at 100% 0%, rgba(56, 189, 248, 0.12) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(30, 64, 175, 0.18) 0px, transparent 55%);
}

/* 2. Glass Card */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.card.glass-card {
    background: var(--glass);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    border-radius: 28px;
    border: 1px solid var(--glass-border);

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);

    padding: 40px;
    text-align: center;

    color: var(--text);

    animation: slideUpLarge 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 3. Logo & Header */
.login-logo-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
}

.login-logo {
    max-width: 90px;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
    animation: fadeInLogo 0.8s ease-out;
}

.login-header {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;

    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 35px;
    line-height: 1.4;
}

/* 4. Alerts */
.alert-success, .alert-error {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    gap: 12px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    animation: slideUpSmall 0.4s ease-out;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* 5. Form Elements */
.input-group {
    text-align: left;
    margin-bottom: 20px;
}

.input-group label {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 8px;

    color: var(--muted);
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 14px 18px;

    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 14px;

    font-size: 15px;
    color: var(--text);

    font-family: 'Plus Jakarta Sans', sans-serif;

    transition: all 0.3s ease;
    outline: none;
}

input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
    transform: translateY(-1px);
}

::placeholder {
    color: var(--muted);
}

/* 6. Links */
.forgot-password-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: -10px;
    margin-bottom: 25px;
}

.forgot-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* 7. Button */
.btn-login {
    position: relative;
    width: 100%;
    padding: 16px;

    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;

    border: none;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    overflow: hidden;

    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);

    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.35);
}

.btn-login::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -70%;
    width: 30%;
    height: 200%;

    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );

    transform: rotate(25deg);
}

.btn-login:hover::after {
    left: 120%;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 8. Back Link */
.back-to-home {
    width: 100%;
    max-width: 450px;
    margin-bottom: 15px;
    align-self: flex-start;
}

.back-to-home a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    transition: all 0.3s ease;
}

.back-to-home a:hover {
    color: var(--primary);
    transform: translateX(-5px);
}

/* 9. Footer */
.login-footer {
    margin-top: 25px;
    font-size: 13.5px;
    color: var(--muted);
}

.login-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* 10. Animations */
@keyframes slideUpLarge {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpSmall {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLogo {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* 11. Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 15px;
    }

    .card.glass-card {
        padding: 35px 25px;
    }
}