﻿
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --error-color: #e74c3c;
    --success-color: #2ecc71;
    --text-color: #34495e;
    --light-gray: #ecf0f1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.welcome-text {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.5s;
}

.subtitle {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 0.7s;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideRight 0.5s ease forwards 0.9s;
}

    .form-group:nth-child(2) {
        animation-delay: 1.1s;
    }

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

    .form-control:focus {
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
        outline: none;
    }

.form-label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.75rem;
    padding: 0 0.4rem;
    background: white;
    color: var(--accent-color);
}

.btn-login {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 0.5rem;
    background: linear-gradient(to right, var(--accent-color), #2980b9);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.5s ease forwards 1.3s;
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
    }

.validation-error {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideRight {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(100vw);
        opacity: 0;
    }
}

