﻿body {
    background: linear-gradient(135deg, #0f172a 0%, #312e81 60%, #1e1b4b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(165, 180, 252, 0.13) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -80px;
    left: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    padding: 45px 40px;
    text-align: center;
    animation: fadeInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #6366f1 0%, #a5b4fc 100%);
    }

.login-logo {
    margin-bottom: 20px;
}

.login-logo-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6366f1 0%, #312e81 100%);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
    animation: logoFloat 3s ease-in-out infinite;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

.form-label {
    text-align: left;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

    .form-control:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
        outline: none;
    }

    .form-control::placeholder {
        color: #9ca3af;
    }

.form-check {
    text-align: left;
    margin-top: 1rem;
}

.form-check-input:checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

.form-check-label {
    color: #4b5563;
    font-size: 0.9rem;
}

.btn-login {
    width: 100%;
    border-radius: 12px;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #6366f1 0%, #312e81 100%);
    border: none;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    color: #fff;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.alert {
    border-radius: 12px;
    font-size: 0.9rem;
    border: none;
    animation: slideDown 0.3s ease;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.login-card a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

    .login-card a:hover {
        color: #a5b4fc;
        text-decoration: underline;
    }

.forgot-password {
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

    .forgot-password a {
        color: #6366f1;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .forgot-password a:hover {
            color: #a5b4fc;
            text-decoration: underline;
        }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 35px 30px;
    }

    .login-title {
        font-size: 1.5rem;
    }
}
