* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #1e2a4a;
    --secondary-color: #2c395f;
    --accent-color: #3a5f8f;
    --text-color: #1e2a4a;
    --light-bg: #ffffff;
    --input-bg: #f8f9fa;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --leaf-color: rgba(255, 255, 255, 0.03);
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at center, var(--secondary-color) 0%, var(--primary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Forest Background Elements */
.forest-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Leaves Animation */
@keyframes falling {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.leaf {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--leaf-color);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: falling 10s linear infinite;
}

.leaf:nth-child(1) { left: 10%; animation-delay: 0s; }
.leaf:nth-child(2) { left: 30%; animation-delay: 2s; }
.leaf:nth-child(3) { left: 50%; animation-delay: 4s; }
.leaf:nth-child(4) { left: 70%; animation-delay: 6s; }
.leaf:nth-child(5) { left: 90%; animation-delay: 8s; }

.login-container {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px var(--shadow-color),
                0 0 100px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0);
    margin: 0 auto;
}

.logo-container {
    text-align: center;
    margin: -3rem auto 1.5rem;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--light-bg);
    padding: 0.5rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0) 70%);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

h2 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 1rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 0 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 0.5rem;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-color);
    opacity: 0.6;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-color);
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(58, 95, 143, 0.1);
    background: var(--light-bg);
}

.input-group input:focus + i {
    color: var(--accent-color);
    opacity: 1;
}

button {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

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: 0.5s;
}

button:hover::before {
    left: 100%;
}

button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.error {
    color: #dc3545;
    text-align: center;
    margin-bottom: 1rem;
    padding: 12px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
} 