/* Reset y estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7fc;
    color: #333;
    line-height: 1.5;
}

/* Contenedor principal */
.calendar-container {
    max-width: 1400px;
    margin: 20px auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 90vh;
    overflow: hidden;
}

/* Barra de navegación superior */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f8;
}

header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #494b74;
}

/* Botones de navegación */
nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Filtros del calendario */
#calendar-filters {
    margin: 0 15px;
}

#calendar-type-filter {
    padding: 6px 12px;
    border: 1px solid #eaeaef;
    border-radius: 6px;
    background-color: #ffffff;
    color: #494b74;
    font-size: 14px;
    cursor: pointer;
}

nav button {
    background-color: #f8f8fc;
    border: none;
    color: #5f6084;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

nav button:hover {
    background-color: #efeffa;
    color: #494b74;
}

nav button.active {
    background-color: #aeb4ff;
    color: #ffffff;
}

nav button i {
    font-size: 14px;
}

#calendar-toolbar {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Estilos para la barra de herramientas de FullCalendar */
.fc-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-content: center !important;
}

.fc-toolbar-chunk {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

/* Asegurarse de que cada botón tenga espacio suficiente */
.fc-button-group .fc-button {
    overflow: visible;
    text-overflow: initial;
    white-space: nowrap;
}

/* Estilo específico para el botón de vista semanal */
.fc-button-group .fc-week-button {
    min-width: 85px; /* Asegurar que el texto 'Semana' se vea completo */
}

/* Vista seleccionada con transición suave */
.fc-button-group .fc-button-primary {
    position: relative;
    overflow: hidden;
    margin: 0 2px; /* Añadir un pequeño espacio entre botones */
}

.fc-button-group .fc-button-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

#settings, #logout, #add-event {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

#settings {
    background-color: #f0f0f0;
    color: #333;
}

#settings:hover {
    background-color: #ddd;
    transform: rotate(30deg);
}

#logout {
    background-color: #ff6b6b;
    color: white;
}

#logout:hover {
    background-color: #ff4f4f;
    transform: scale(1.1);
}

#add-event {
    background-color: #aeb4ff;
    color: white;
}

#add-event:hover {
    background-color: #9296ff;
    transform: translateY(-2px);
}

/* Nueva sección para contenedor del calendario */
.content-wrapper {
    display: flex;
    height: calc(100% - 77px); /* Ajustar según la altura de la cabecera */
}

/* Barra lateral */
#event-list {
    width: 280px;
    background-color: #f8f8fc;
    border-right: 1px solid #f0f0f8;
    padding: 20px;
    overflow-y: auto;
    border-radius: 0 0 0 16px;
}

.event-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e7e7f7;
}

#event-list h3 {
    font-size: 16px;
    font-weight: 600;
    color: #494b74;
    margin: 0;
}

.event-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.event-filter label {
    color: #6c6d8a;
}

.event-filter select {
    padding: 4px 8px;
    border: 1px solid #e7e7f7;
    border-radius: 4px;
    background-color: #ffffff;
    color: #494b74;
    font-size: 13px;
    cursor: pointer;
}

#upcoming-events {
    list-style: none;
    margin-top: 10px;
}

#upcoming-events li {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 10px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #aeb4ff;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
}

#upcoming-events li:hover {
    background-color: #f0f0fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#upcoming-events li::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #c4c4d4;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease, right 0.2s ease;
}

#upcoming-events li:hover::after {
    opacity: 1;
    right: 10px;
}

#upcoming-events li strong {
    display: block;
    font-weight: 600;
    color: #494b74;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#upcoming-events .event-time {
    font-size: 12px;
    color: #6c6d8a;
    display: flex;
    align-items: center;
    gap: 5px;
}

#upcoming-events .event-time i {
    color: #aeb4ff;
    font-size: 11px;
    margin-bottom: 5px;
}

#upcoming-events li .event-date {
    display: block;
    font-size: 12px;
    color: #8a8ba3;
    margin-top: 5px;
}

#upcoming-events .no-events {
    color: #8a8ba3;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.loading-events {
    color: #8a8ba3;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.loading-events i {
    margin-right: 8px;
    animation: girar 1.5s linear infinite;
}

@keyframes girar {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contenedor principal del calendario */
#calendar {
    flex: 1;
    padding: 15px;
    overflow: auto;
    background: #fff;
    border-radius: 0 0 16px 0;
}

/* Personalización de FullCalendar */
.fc {
    --fc-border-color: #eeeefc;
    --fc-event-border-color: transparent;
    --fc-today-bg-color: #f0f4ff;
    --fc-page-bg-color: #ffffff;
    --fc-neutral-bg-color: #f8f8fc;
    font-family: inherit;
    max-height: 100%;
}

.fc .fc-button-primary {
    background-color: #aeb4ff;
    border-color: #aeb4ff;
    border-radius: 10px;
    font-weight: 500;
    padding: 8px 16px;
    text-transform: capitalize;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content; /* Ajustar al contenido del texto */
    transition: all 0.2s ease;
}

.fc .fc-button-primary:hover {
    background-color: #9296ff;
    border-color: #9296ff;
}

.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #8085e0;
    border-color: #8085e0;
}

/* Destacar el botón HOY */
.fc .fc-today-button {
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(174, 180, 255, 0.3);
}

.fc .fc-button-primary:hover {
    background-color: #9296ff;
    border-color: #9296ff;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #f0f4ff;
}

.fc .fc-col-header-cell {
    background-color: #f8f8fc;
    padding: 10px 0;
}

.fc .fc-daygrid-day-top {
    justify-content: center;
    padding-top: 5px;
}

.fc .fc-daygrid-day-number {
    font-weight: 500;
    color: #494b74;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    border-radius: 50%;
}

.fc .fc-day-today .fc-daygrid-day-number {
    background-color: #aeb4ff;
    color: white;
}

/* Estilos generales para eventos del calendario - Asegurar texto blanco */
.fc-event {
    cursor: pointer;
    border-radius: 8px;
    padding: 5px 8px;
    margin: 2px 5px;
    border: none;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    color: #ffffff !important; /* Texto blanco para TODOS los eventos con !important para evitar sobreescrituras */
}

.fc-event:hover {
    transform: translateY(-1px);
}

.fc-daygrid-event-harness {
    margin-top: 4px;
}

.fc-event-main {
    padding: 2px 0;
}

/* Colores pastel para eventos */
.fc-event-default {
    background-color: #aeb4ff;
    border-color: #aeb4ff;
    border-left: 3px solid #8085e0;
}

.fc-event-personal {
    background-color: #ffd6e0;
    border-color: #ffd6e0;
    color: #ffffff;
    border-left: 3px solid #ff9eb4;
}

/* Estilos específicos para cada tipo de evento */
.fc-event-task {
    background-color: #4CD964 !important; /* Verde oscuro */
    border-color: #4CD964 !important;
    color: #ffffff !important;
}

.fc-event-reminder {
    background-color: #FF9500 !important; /* Naranja oscuro */
    border-color: #FF9500 !important;
    color: #ffffff !important;
}

.fc-event-birthday {
    background-color: #FF2D55 !important; /* Rosa oscuro */
    border-color: #FF2D55 !important;
    color: #ffffff !important;
}

.fc-event-work {
    background-color: #34c1ad !important; /* Verde-azul oscuro */
    border-color: #34c1ad !important;
    color: #ffffff !important;
}

.fc-event-other {
    background-color: #e6a800 !important; /* Amarillo oscuro */
    border-color: #e6a800 !important;
    color: #ffffff !important;
}

/* Estilo para eventos recurrentes */
.recurring-event {
    background-color: #5856d6; /* Fondo más oscuro para mejor contraste */
    border-color: #5856d6;
    color: #ffffff !important;
    border-left: 3px solid #423db0;
}

.recurring-event {
    border-left: 3px solid #9c85c0;
    background-color: #e9e0f7;
}

/* Asegurar que los eventos pasados también tengan texto blanco */
.past-event {
    color: #ffffff !important;
}

.fc-daygrid-dot-event .fc-event-title {
    font-weight: 500;
}

.fc-toolbar-title {
    font-size: 18px !important;
    color: #494b74;
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    animation: fadeIn 0.2s;
}

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

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateY(-70px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.2s;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transform: rotate(90deg);
}

#event-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff; /* Texto blanco */
    padding: 10px 15px;
    border-radius: 8px;
    /* El color de fondo se asignará dinámicamente desde JavaScript */
}

#event-description {
    margin-bottom: 20px;
    color: #666;
    background-color: #f8f8fc;
    padding: 15px;
    border-radius: 12px;
    font-size: 14px;
}

#event-date {
    color: #8a8ba3;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Estilos para la ubicación del evento */
.event-location {
    font-size: 14px;
    color: #8a8ba3;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.event-location i {
    margin-right: 8px;
    color: #aeb4ff;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-id, .event-type, .calendar-type {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #f8f8fc;
    color: #8a8ba3;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-actions button {
    width: auto;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 500;
}

#edit-event {
    background-color: #aeb4ff;
}

#edit-event:hover {
    background-color: #9296ff;
}

#delete-event {
    background-color: #ffd6e0;
    color: #a25768;
}

#delete-event:hover {
    background-color: #ffbfce;
}

/* Formularios */
.login-form, .register-form, .forgot-password-form, .reset-password-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.login-form h2, .register-form h2, .forgot-password-form h2, .reset-password-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 500;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus, textarea:focus, select:focus {
    border-color: #007aff;
    outline: none;
}

input[type="datetime-local"] {
    width: 100%;
    box-sizing: border-box;
}

/* Estilos modernos para inputs de fecha y hora */
input[type="datetime-local"] {
    background-color: #ffffff;
    border: 1px solid #e0e0e6;
    border-radius: 8px;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    padding: 10px 12px;
    transition: all 0.2s ease;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    appearance: none;
    -webkit-appearance: none;
}

input[type="datetime-local"]:focus {
    border-color: #aeb4ff;
    box-shadow: 0 0 0 3px rgba(174, 180, 255, 0.2);
    outline: none;
}

input[type="datetime-local"]:hover {
    border-color: #c8ccd4;
}

/* Estilos para la solución personalizada en Firefox */
.custom-datetime-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px;
    margin-bottom: 10px;
}

.custom-datetime-wrapper input[type="date"] {
    background-color: #f8f8fc;
    border: 1px solid #e0e0e6;
    border-radius: 6px;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 10px;
    transition: all 0.2s ease;
    width: 100%;
    margin-bottom: 8px;
}

.custom-datetime-wrapper input[type="number"] {
    background-color: #f8f8fc;
    border: 1px solid #e0e0e6;
    border-radius: 6px;
    color: #333;
    font-family: inherit;
    font-size: 14px;
    padding: 8px 10px;
    transition: all 0.2s ease;
}

.custom-datetime-wrapper input:focus {
    border-color: #aeb4ff;
    box-shadow: 0 0 0 3px rgba(174, 180, 255, 0.2);
    outline: none;
}

.custom-datetime-wrapper input:hover {
    border-color: #c8ccd4;
}

/* Indicador visual del formato 24h */
.time-format-indicator {
    background-color: #f0f1ff;
    color: #5f6084;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 6px;
    margin-left: 8px;
    border: 1px solid #e0e2f7;
}

/* Compatibilidad con tema oscuro si existe */
@media (prefers-color-scheme: dark) {
    input[type="datetime-local"],
    .custom-datetime-wrapper {
        background-color: #2d2d3d;
        border-color: #444456;
        color: #e0e0e6;
    }
    
    .custom-datetime-wrapper input[type="date"],
    .custom-datetime-wrapper input[type="number"] {
        background-color: #22222e;
        border-color: #444456;
        color: #e0e0e6;
    }
    
    .time-format-indicator {
        background-color: #373747;
        color: #b8bacc;
        border-color: #444456;
    }
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #007aff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #0062cc;
}

/* Crear/Editar Evento */
.create-event-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.create-event-form h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 500;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.create-event-form h2 .form-close {
    font-size: 24px;
    cursor: pointer;
    color: #757575;
}

.form-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #555;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.form-row > div {
    flex: 1;
    min-width: 140px; /* Establece un mínimo para evitar que se comprima demasiado */
}

.form-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #007aff;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.cancel-button {
    display: block;
    width: 48%;
    padding: 12px;
    background-color: #f5f5f7;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cancel-button:hover {
    background-color: #e9e9eb;
}

/* Mensajes */
.error-message, .success-message {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

/* Efectos y mejoras de UI para formularios de autenticación */
.auth-container .form-group:focus-within label {
    color: #6c5ce7;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    transition: all 0.2s;
}

.toggle-password:hover {
    color: #6c5ce7;
}

.error-field {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2) !important;
}

.auth-container .btn-primary:active {
    transform: scale(0.98);
}

/* Animación sutil para los mensajes */
.success-message, .error-message {
    animation: fadeIn 0.3s ease-in;
}

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

/* Responsivo */
@media (max-width: 768px) {
    .calendar-container {
        border-radius: 0;
    }
    
    header {
        padding: 10px;
    }
    
    nav {
        gap: 5px;
    }
    
    nav button {
        padding: 6px;
    }
    
    .content-wrapper {
        flex-direction: column;
    }
    
    #event-list {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        max-height: 200px;
    }
    
    .create-event-form {
        margin: 10px;
    }
    
    /* Ajustes responsivos para FullCalendar */
    .fc .fc-toolbar.fc-header-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.2em;
    }
    
    .fc .fc-toolbar-chunk {
        width: 100%;
        justify-content: center;
    }
    
    .fc .fc-button-group {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .fc .fc-button-primary {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* Estilos para las opciones de eliminación de eventos recurrentes */
.recurring-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.option-btn {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}

.option-btn:nth-child(1) {
    background-color: #f8f9fa;
    color: #212529;
    border-left: 3px solid #6c757d;
}

.option-btn:nth-child(2) {
    background-color: #fff3cd;
    color: #856404;
    border-left: 3px solid #ffc107;
}

.option-btn:nth-child(3) {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 3px solid #dc3545;
}

.option-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#recurring-delete-modal .modal-content {
    max-width: 450px;
}

/* Estilos para páginas de autenticación */
.auth-page {
    background: linear-gradient(135deg, #7f7fd5, #86a8e7, #91eae4);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-form, .register-form, .forgot-password-form {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    font-size: 60px;
    color: #6c5ce7;
    margin-bottom: 20px;
}

.auth-container h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-subtitle {
    color: #666;
    margin-bottom: 25px;
}

.auth-container .form-group {
    position: relative;
    margin-bottom: 20px;
}

.auth-container .form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 16px;
}

.auth-container input[type="text"],
.auth-container input[type="email"],
.auth-container input[type="password"] {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.auth-container input:focus {
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
    outline: none;
}

.btn-primary {
    background-color: #6c5ce7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    background-color: #5649c0;
    transform: translateY(-2px);
}

.btn-link {
    color: #6c5ce7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-link:hover {
    color: #5649c0;
    text-decoration: underline;
}

.auth-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    color: #666;
}

.auth-links a {
    color: #6c5ce7;
    text-decoration: none;
    transition: all 0.2s;
}

.auth-links a:hover {
    color: #5649c0;
    text-decoration: underline;
}

.divider {
    margin: 0 10px;
    color: #ccc;
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.success-message {
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
}

.error-message i, .success-message i {
    margin-right: 8px;
}

/* Estilos responsivos para auth */
@media (max-width: 480px) {
    .login-form, .register-form, .forgot-password-form {
        padding: 20px;
        max-width: 90%;
        margin: 0 15px;
    }
}