* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #4A2F1A 0%, #5C3A1E 50%, #4A2F1A 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(166, 137, 80, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(139, 105, 20, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    background: linear-gradient(135deg, #5C3A1E, #4A2F1A);
    backdrop-filter: blur(10px);
    border: 2px solid #D4A76A;
    border-radius: 15px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(166, 137, 80, 0.2);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    position: relative;
    z-index: 1;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo i {
    font-size: 50px;
    color: #FFC857;
    text-shadow: 0 2px 10px rgba(166, 137, 80, 0.5);
}

h2 {
    text-align: center;
    color: #FFC857;
    margin-bottom: 30px;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    text-align: center;
    color: #FFD98E;
    font-size: 14px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #FFD98E;
    font-weight: 500;
    margin-bottom: 8px;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8B6914;
}

.form-group input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #D4A76A;
    background: rgba(74, 47, 26, 0.5);
    color: #FFC857;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #FFC857;
    background: rgba(74, 47, 26, 0.7);
    box-shadow: 0 0 0 3px rgba(166, 137, 80, 0.2);
}

.form-group input::placeholder {
    color: #8B7355;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86EFAC;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #A68950 0%, #876B48 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(166, 137, 80, 0.4);
}

.btn:hover {
    background: linear-gradient(135deg, #876B48 0%, #A68950 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 137, 80, 0.6);
}

.btn:active {
    transform: translateY(0);
}

.links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #FFD98E;
}

.links a {
    color: #FFC857;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.links a:hover {
    color: #FFD98E;
    text-decoration: underline;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #A68950, #876B48);
    color: #2d1a0a !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(166, 137, 80, 0.4);
}

.home-link:hover {
    background: linear-gradient(135deg, #876B48, #A68950);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(166, 137, 80, 0.6);
    text-decoration: none;
}

.home-link i {
    font-size: 14px;
}

.divider {
    margin: 15px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .logo i {
        font-size: 40px;
    }
    
    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .subtitle {
        font-size: 13px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input {
        padding: 10px 12px 10px 40px;
        font-size: 14px;
    }
    
    .input-group i {
        left: 12px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .alert {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .links {
        font-size: 13px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .logo {
        margin-bottom: 20px;
    }
    
    .logo i {
        font-size: 35px;
    }
    
    h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 9px 10px 9px 38px;
        font-size: 13px;
    }
    
    .btn {
        padding: 11px;
        font-size: 14px;
    }
}
