﻿/* CSS Variables */
:root {
    --la-navy: #0F1330;
    --la-pale: #E9D9C5;
    --la-sand: #C3A387;
    --la-terracotta: #7A3F30;
    --la-gold: #D4A459;
    --la-clay: #CC7051;
    --la-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--la-navy) 0%, #1a1f45 50%, var(--la-terracotta) 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

    body::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E9D9C5' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        opacity: 0.3;
    }

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(233, 217, 197, 0.2);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--la-gold), var(--la-clay));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(212, 164, 89, 0.4);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.brand-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--la-navy), var(--la-terracotta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.brand-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    border: none;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 3px solid #dc3545;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-left: 3px solid #198754;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--la-navy);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: var(--la-transition);
    background: #f8fafc;
}

    .form-input:focus {
        outline: none;
        border-color: var(--la-gold);
        background: white;
        box-shadow: 0 0 0 3px rgba(212, 164, 89, 0.1);
    }

.btn-login {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--la-gold), var(--la-clay));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--la-transition);
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(212, 164, 89, 0.3);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(212, 164, 89, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #64748b;
}

    .login-footer a {
        color: var(--la-gold);
        font-weight: 600;
        text-decoration: none;
        transition: var(--la-transition);
    }

        .login-footer a:hover {
            color: var(--la-terracotta);
            text-decoration: underline;
        }

.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 164, 89, 0.1), rgba(204, 112, 81, 0.1));
    filter: blur(80px);
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.circle-2 {
    width: 250px;
    height: 250px;
    bottom: -125px;
    right: -125px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 20px);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 2rem 1.5rem;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-icon {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }
}
