:root {
    --primary-color: #4361ee;
    --primary-gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --font-family: 'Inter', sans-serif;
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.8);
    --input-bg: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 0, 0, 0.05);
}

body {
    font-family: var(--font-family);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    position: relative;
    z-index: 10;
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.brand-section {
    text-align: center;
    padding: 40px 40px 20px 40px;
}

.brand-logo-img {
    height: 52px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.brand-text {
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.85rem;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}

.brand-subtext {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
}

.input-group-modern {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.input-group-modern:focus-within {
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
    transform: translateY(-1px);
}

.input-group-modern i.input-icon {
    padding: 0 16px;
    color: #94a3b8;
    font-size: 1.1rem;
}

.form-control-modern {
    border: none;
    background: transparent;
    padding: 14px 16px 14px 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    width: 100%;
}

.form-control-modern::placeholder {
    color: #cbd5e1;
}

.form-control-modern:focus {
    outline: none;
    box-shadow: none;
}

.password-toggle {
    padding: 0 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    background: none;
    border: none;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.btn-login {
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
    box-shadow: 0 10px 20px -5px rgba(67, 97, 238, 0.3);
}

.btn-login:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 30px -5px rgba(67, 97, 238, 0.4);
    color: #ffffff;
}

.btn-login:active {
    transform: translateY(-1px) scale(1);
}

.alert-custom {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    border-radius: 14px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.footer-text {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}
