/* =========================================
   LOGIN PAGE STYLES
   ========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    background: linear-gradient(-45deg, #0f172a, #1e293b, #0f172a, #1e293b);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.container {
    width: 100%;
    max-width: 420px;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 1;
}

form {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(74, 144, 226, 0.1);
    width: 100%;
    border: 1px solid rgba(74, 144, 226, 0.2);
}

.brand-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    animation: slideIn 0.8s ease-out 0.2s both;
}

.brand-logos img {
    max-height: 50px;
    width: auto;
    filter: brightness(1.1);
}

form h1 {
    color: #fff;
    text-align: center;
    margin: 0 0 30px;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: -0.5px;
    animation: slideIn 0.8s ease-out 0.3s both;
}

.input-container {
    position: relative;
    margin-bottom: 24px;
    animation: slideIn 0.8s ease-out both;
}

.input-container:nth-child(1) {
    animation-delay: 0.4s;
}

.input-container:nth-child(2) {
    animation-delay: 0.5s;
}

.input-container input {
    width: 100%;
    height: 52px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    color: #fff;
    padding: 0 50px 0 16px;
    outline: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.input-container input:focus {
    border-color: #4a90e2;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2), 0 0 20px rgba(74, 144, 226, 0.3);
    transform: translateY(-2px);
}

.input-container input::placeholder {
    color: #64748b;
}

.input-container img {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.input-container input:focus + img {
    opacity: 1;
}

.input-container a {
    position: absolute;
    right: 0;
    bottom: -32px;
    font-size: 13px;
    color: #4a90e2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.input-container a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

.submit-button {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
    animation: slideIn 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-button:hover::before {
    left: 100%;
}

.submit-button:hover {
    background: linear-gradient(135deg, #357abd 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.6);
}

.submit-button:active {
    transform: translateY(0);
}

.alerts {
    margin: 20px 0;
    animation: slideIn 0.8s ease-out 0.7s both;
}

.alert {
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    animation: fadeInUp 0.4s ease-out;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

@media (max-width: 480px) {
    form {
        padding: 30px 24px;
    }
    
    form h1 {
        font-size: 24px;
    }
}
