/* ============================================
   ESTILOS GENERALES - Login y Registro
   ============================================ */

/* --- Reset Global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Layout Principal --- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: rgba(74, 181, 191, 0.85);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    color: #333;
}

/* --- Contenedor Principal --- */
.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

/* --- Animación de Entrada --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */

/* --- Títulos Principales --- */
h1 {
    color: #4ab5bf;
    margin-bottom: 25px;
    text-align: center;
    font-size: 28px;
    font-weight: 600;
}

/* --- Variantes de Títulos --- */
h1.success-title {
    color: #48bb78;
}

h1.error-title {
    color: #f56565;
}

/* --- Subtítulos --- */
h2 {
    color: #555;
    margin-bottom: 20px;
    font-size: 22px;
}

/* --- Párrafos --- */
p {
    margin-bottom: 15px;
    color: #666;
}

/* ============================================
   FORMULARIOS
   ============================================ */

/* --- Contenedor de Formulario --- */
form {
    display: flex;
    flex-direction: column;
}

form > div {
    margin-bottom: 20px;
}

/* --- Etiquetas de Formulario --- */
label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

/* --- Campos de Entrada --- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

/* --- Estados de Enfoque --- */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4ab5bf;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* --- Área de Texto --- */
textarea {
    resize: vertical;
    min-height: 100px;
}

/* ============================================
   BOTONES
   ============================================ */

/* --- Botón Base --- */
button,
.btn {
    width: 100%;
    padding: 14px 20px;
    background: #4ab5bf;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

/* --- Estados de Hover --- */
button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active,
.btn:active {
    transform: translateY(0);
}

button[type="submit"] {
    margin-top: 10px;
}

/* --- Variantes de Botones --- */
.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
}

.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.btn-success:hover {
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

/* --- Tamaños de Botones --- */
.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

/* ============================================
   MENSAJES Y ALERTAS
   ============================================ */

/* --- Contenedor de Mensaje --- */
.flash,
.alert,
.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

/* --- Animación de Mensajes --- */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --- Variantes de Alertas --- */
.flash.error,
.alert-error {
    background-color: #fff5f5;
    color: #c53030;
    border: 1px solid #fc8181;
}

.flash.success,
.alert-success {
    background-color: #f0fff4;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.flash.warning,
.alert-warning {
    background-color: #fffaf0;
    color: #7c2d12;
    border: 1px solid #fbd38d;
}

.flash.info,
.alert-info {
    background-color: #ebf8ff;
    color: #2c5282;
    border: 1px solid #90cdf4;
}

/* ============================================
   ENLACES
   ============================================ */

/* --- Enlaces Base --- */
a {
    color: #4ab5bf;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    color: #3a9ca5;
    text-decoration: underline;
}

/* --- Separadores --- */
hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 25px 0;
}

/* ============================================
   TABLAS
   ============================================ */

/* --- Tabla Base --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
}

/* --- Celdas de Tabla --- */
table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

table td:first-child {
    font-weight: 600;
    color: #555;
    width: 40%;
}

/* --- Estados de Filas --- */
table tbody tr {
    transition: all 0.3s ease;
}

table tbody tr:hover {
    background: #f8f9fa;
}

/* ============================================
   TARJETAS DE HECHOS
   ============================================ */

/* --- Tarjeta de Hecho --- */
.hecho-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.hecho-card h2 {
    color: #4ab5bf;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.hecho-card p {
    margin-bottom: 10px;
}

/* ============================================
   UTILIDADES
   ============================================ */

/* --- Alineación de Texto --- */
.text-center {
    text-align: center;
}

/* --- Espaciado Superior --- */
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

/* --- Espaciado Inferior --- */
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* --- Visibilidad --- */
.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Móviles --- */
@media (max-width: 600px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 24px;
    }

    button,
    .btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

