:root {
    --primary-color: #006400;
    --secondary-color: #0056b3;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --success-color: #28a745;
    --error-color: #dc3545;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(0,100,0,0.8), rgba(0,86,179,0.8)),
                url('../img/formulario.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

.forgot-password-container {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 40px;
    max-width: 500px;
    width: 100%;
    margin: 20px;
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 120px;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

h2 {
    font-size: 1.8em;
    color: var(--primary-color);
    font-weight: 700;
}

.subtitle {
    font-size: 1.1em;
    color: #555;
    margin: 10px 0 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.input-icon {
    position: relative;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

input[type="email"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.1);
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button:hover {
    background-color: #004d00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 100, 0, 0.2);
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-size: 0.95em;
    display: none;
}

.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.success-message {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8em;
    color: #555;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.footer-link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
}

.footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .forgot-password-container {
        padding: 30px 20px;
        margin: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    .subtitle {
        font-size: 1em;
    }
}

.forgot-password-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-color);
}