﻿/* Nhúng font Inter - Hiện đại và hỗ trợ tiếng Việt cực tốt */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
    --bg-body: #0f172a; /* Xanh đen sâu (Slate 900) */
    --bg-card: #1e293b; /* Xanh xám (Slate 800) */
    --primary-color: #38bdf8; /* Xanh Sky Blue nổi bật */
    --primary-hover: #0ea5e9;
    --text-main: #f1f5f9; /* Trắng xám dịu mắt */
    --text-muted: #94a3b8; /* Xám xanh cho chú thích */
    --border-input: #334155;
    --input-focus: #38bdf8;
    --error: #fb7185;
    --success: #34d399;
}

body {

    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.login-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

    .header h2 {
        color: var(--primary-color);
        font-weight: 800;
        font-size: 1.8rem;
        margin: 0;
        letter-spacing: -0.025em;
        text-transform: uppercase;
    }

    .header p {
        color: var(--text-muted);
        font-size: 0.95rem;
        margin-top: 0.5rem;
    }

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group input {
        width: 100%;
        padding: 14px 16px;
        margin-bottom: 1rem;
        border: 2px solid var(--border-input);
        border-radius: 10px;
        outline: none;
        transition: all 0.2s ease;
        background-color: #0f172a; /* Input tối hơn nền card tạo chiều sâu */
        color: #fff;
        font-size: 1rem;
        box-sizing: border-box;
    }

        .form-group input:focus {
            border-color: var(--input-focus);
            background-color: #1e293b;
            box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
        }

        .form-group input::placeholder {
            color: #475569;
        }

button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
    text-transform: uppercase;
}

    button:hover {
        opacity: 0.9;
        transform: translateY(-1px);
        box-shadow: 0 6px 15px rgba(56, 189, 248, 0.35);
    }

    button:disabled {
        background: #475569;
        cursor: not-allowed;
        transform: none;
    }

.footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

    .footer a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.2s;
    }

        .footer a:hover {
            color: #7dd3fc;
        }

/* Toast Notification hiện đại */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    padding: 12px 24px;
    margin-bottom: 10px;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-left: 4px solid rgba(255,255,255,0.3);
    transition: all 0.5s ease;
}

    .toast.success {
        background-color: rgba(52, 211, 153, 0.9);
    }

    .toast.error {
        background-color: rgba(251, 113, 133, 0.9);
    }


/* Tinh chỉnh Footer để không bị ríu */
.footer {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #64748b; /* Màu chữ phụ */
}

    .footer span {
        display: block;
        margin-bottom: 10px;
    }

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Khoảng cách giữa các link */
}

    .footer-links a {
        color: #3b82f6; /* Màu xanh Primary */
        text-decoration: none;
        font-weight: 600;
        transition: 0.3s;
    }

        .footer-links a:hover {
            color: #60a5fa;
            text-decoration: underline;
        }

.footer .divider {
    color: #334155; /* Màu thanh gạch dọc */
    font-size: 12px;
    user-select: none;
}