a.unstyled-link {
    color: inherit;
    text-decoration: none;
}
a.unstyled-link:hover {
    color: inherit;
    opacity: 0.9;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estilos generales */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(87, 73, 117, 0.7); /* Color púrpura #574975 con opacidad */
}

/* Contenedor principal */
.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    height: 30px; /* Tamaño reducido del logo */
}

/* Contenido principal */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem; /* Espacio adicional en la parte superior */
}

/* Contenedor de características y formulario */
.content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .content-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

/* Formulario de login */
.login-form-container {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, .35);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    animation: fadeIn 0.8s ease-out, slideUp 0.8s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 1.5rem; /* Bajando un poco el formulario */
}

@media (min-width: 992px) {
    .login-form-container {
        margin-left: auto; /* Alinea a la derecha en pantallas grandes */
        margin-bottom: 0.5rem;
    }
}

.login-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); }
    to { transform: translateY(0); }
}

.login-header {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
}

.login-title {
    font-size: 1.25rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.calendar-icon {
    margin-right: 0.5rem;
}

/* Estilos para la animación de transición entre formularios */
.form-transition {
    position: relative;
}

.login-form, .recovery-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-form {
    position: relative;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.show-recovery .login-form {
    opacity: 0;
    transform: translateX(-50px);
    pointer-events: none;
}

.show-recovery .recovery-form {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: #574975;
    box-shadow: 0 0 0 2px rgba(87, 73, 117, 0.3);
}

.input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 1rem; /* Espacio antes del botón */
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-checkbox {
    margin-right: 0.5rem;
    accent-color: #574975;
}

.remember-label {
    font-size: 0.875rem;
}

/* Color blanco para los enlaces */
.forgot-password, .back-to-login {
    font-size: 0.875rem;
    color: #ffffff; /* Color blanco para los enlaces */
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.forgot-password:hover, .back-to-login:hover {
    color: rgba(255, 255, 255, 0.8); /* Ligeramente más transparente al pasar el mouse */
}

.submit-button, .recover-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #574975;
    color: white;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0; /* Eliminando el margen inferior del botón */
}

.submit-button:hover, .recover-button:hover {
    background-color: #6a5b8e;
}

.arrow-icon {
    margin-left: 0.5rem;
}

/* Alerta de error - Fuera del cuadrado */
.error-container {
    width: 100%;
    margin-bottom: 1rem;
}

.error-alert {
    padding: 0.75rem;
    background-color: rgba(220, 38, 38, 0.1);
    border-left: 4px solid #dc2626;
    border-radius: 4px;
    color: #fee2e2;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s ease-out;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease, padding 0.3s ease;
}

.error-alert.show {
    opacity: 1;
    height: auto;
    padding: 0.75rem;
}

.error-icon {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Sección de características */
.features-section {
    width: 100%;
    max-width: 600px;
    margin-top: 2rem; /* Bajando un poco la sección de características */
}

.features-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 992px) {
    .features-content {
        flex-direction: column;
    }
}

.features-title {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.features-list li::before {
    content: '•';
    margin-right: 0.5rem;
}

.features-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 1rem; /* Espacio adicional antes de los iconos */
}

.feature-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.feature-icon:nth-child(1) { animation-delay: 0.2s; }
.feature-icon:nth-child(2) { animation-delay: 0.4s; }

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

.icon-circle {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.feature-icon:hover .icon-circle {
    background-color: rgba(255, 255, 255, 0.4);
}

.icon-label {
    font-size: 0.875rem;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.75rem;
    margin-top: 2rem;
    width: 100%;
}