:root {
    --primary-color: #2D6A4F;
    --primary-light: #40916C;
    --primary-dark: #1B4332;
    --text-dark: #333;
    --text-light: #6c757d;
    --background-light: #f0f4f8;
    --background-white: #fff;
    --border-color: #d1d5db;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
    --radius-sm: 6px;
    --radius-md: 12px;
}

body {
    background: var(--background-light);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
}

html, body {
    height: 100%;
}

.login-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-form {
    background: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    width: 380px;
    animation: fadeIn 0.5s ease-out forwards;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
}

input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

input[type="email"]:focus {
    border-color: var(--primary-color);
    background: var(--background-white);
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 0.5rem;
}

.login-btn:hover {
    background: var(--primary-dark);
}

.back-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.2s;
}

.back-icon:hover {
    color: var(--primary-color);
    transform: translateX(-3px);
}

.register-link {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.register-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    margin-left: 5px;
}

.register-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.text-danger {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .login-form {
        width: 90%;
        padding: 2rem 1.5rem;
    }
}
