:root {
    --primary-color: #952f57;
    --secondary-color: #62152d;
    --bg-color: rgb(255, 220, 170);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Lato', sans-serif;
}

body {
    background: linear-gradient(135deg, rgba(255, 220, 170, 0.8), rgba(149, 47, 87, 0.8));
    font-family: var(--font-primary);
    font-size: 16px;
    margin: 0;
    padding: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

header {
    color: #fff;
    padding: 0;
    text-align: center;
    width: 100%;
    top: 0;
}

section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.form {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form h1 {
    font-family: var(--font-primary);
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

a {
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
}

.campo {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.campo i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.campo input {
    font-family: var(--font-secondary);
    padding: 12px;
    padding-left: 40px;
    width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.container2 {
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 10%;
}

.btn {
    font-family: var(--font-secondary);
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.error-message {
    color: red;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Media queries para dispositivos móviles */

@media (max-width: 800px) {
    .form {
        padding: 15px;
    }

    .form h1 {
        font-size: 24px;
    }

    .campo input {
        font-size: 14px;
        padding: 10px;
    }

    .btn {
        padding: 10px 25px;
    }
}

@media (max-width: 500px) {
    .form {
        padding: 10px;
    }

    .form h1 {
        font-size: 22px;
    }

    .campo {
        flex-direction: column;
        align-items: flex-start;
    }

    .campo i {
        left: 10px;
        top: 10px;
        transform: translateY(0);
    }

    .campo input {
        padding-left: 35px;
    }

    .container2 {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 12px 0;
    }
}
