/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #003D7A 0%, #4A90E2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    line-height: 1.6;
}

/* Contenedor principal */
.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
    padding: 40px;
}

/* Logo */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container img {
    max-width: 150px;
    height: auto;
    display: block;
}

/* Títulos */
h1 {
    color: #333;
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

h2 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Formularios */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
    background-color: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #003D7A;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 61, 122, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
    padding: 12px 14px;
}

/* Botones */
button,
.btn,
input[type="button"],
input[type="submit"] {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #003D7A 0%, #4A90E2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

button:hover,
.btn:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 122, 0.4);
}

button:active,
.btn:active,
input[type="button"]:active,
input[type="submit"]:active {
    transform: translateY(0);
}

button:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center p {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.text-center a {
    color: #003D7A;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.text-center a:hover {
    color: #4A90E2;
    text-decoration: underline;
}

/* Alertas */
.alert {
    padding: 16px 14px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    border-left: 4px solid;
    line-height: 1.5;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left-color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left-color: #17a2b8;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left-color: #ffc107;
}

/* Responsive para tablet */
@media (max-width: 768px) {
    body {
        padding: 8px;
    }

    .container {
        padding: 32px 24px;
        border-radius: 12px;
    }

    h1 {
        font-size: 26px;
    }

    label {
        font-size: 13px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    textarea,
    select {
        padding: 12px 12px;
        font-size: 16px; /* Evitar zoom en iOS */
    }

    button,
    .btn,
    input[type="button"],
    input[type="submit"] {
        padding: 13px 14px;
        font-size: 14px;
    }
}

/* Responsive para móvil pequeño */
@media (max-width: 480px) {
    body {
        padding: 6px;
    }

    .container {
        padding: 24px 18px;
        border-radius: 10px;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    h2 {
        font-size: 20px;
    }

    .logo-container {
        margin-bottom: 24px;
    }

    .logo-container img {
        max-width: 120px;
    }

    .subtitle {
        font-size: 13px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    label {
        font-size: 13px;
        margin-bottom: 6px;
        font-weight: 600;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="datetime-local"],
    textarea,
    select {
        padding: 12px 12px;
        font-size: 16px; /* Evitar zoom en iOS */
        border-radius: 6px;
    }

    button,
    .btn,
    input[type="button"],
    input[type="submit"] {
        padding: 13px 12px;
        font-size: 14px;
        border-radius: 6px;
    }

    .text-center {
        margin-top: 18px;
    }

    .text-center p {
        font-size: 13px;
    }

    .alert {
        padding: 14px 12px;
        font-size: 13px;
    }
}
