/* =======================================
   ESTILOS GENERALES (TECMILENIO)
   ======================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: 
        linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
        url("tec.png") no-repeat center center fixed;
    background-size: cover;
    color: #333333;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 40px auto;
    padding: 35px;
    background-color: white;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-left: 10px solid #78BE20; /* Verde Tecmilenio */
}

/* =======================================
   ENCABEZADOS
   ======================================= */
h1 {
    color: #0057A5; /* Azul institucional */
    font-size: 2.4em;
    margin-bottom: 25px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid #78BE20;
    padding-bottom: 12px;
    font-weight: 800;
}

h2 {
    color: #2C5F2D;
    font-size: 1.9em;
    margin-bottom: 15px;
    font-weight: bold;
}

/* =======================================
   FORMULARIOS
   ======================================= */
.form-container {
    padding: 25px;
    background-color: #f9fff7;
    border: 1px solid #c7e6b2;
    border-radius: 12px;
    margin-top: 20px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="password"],
select {
    width: 92%;
    padding: 14px;
    margin: 10px 0;
    border: 1px solid #b8cbb8;
    border-radius: 7px;
    transition: 0.25s;
    font-size: 1em;
}

input:focus, select:focus {
    border-color: #78BE20;
    box-shadow: 0 0 10px rgba(120, 190, 32, 0.5);
    outline: none;
}

.form-container table {
    width: 100%;
    border-collapse: collapse;
}

.form-container table td {
    padding: 10px;
}

/* =======================================
   BOTONES / ACCIONES
   ======================================= */
input[type="submit"],
.menu-crud a {
    background-color: #78BE20;
    color: white;
    padding: 14px 28px;
    margin: 8px 0;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.25s;
    display: inline-block;
    text-decoration: none;
}

input[type="submit"]:hover,
.menu-crud a:hover {
    background-color: #2C5F2D;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
}

/* =======================================
   TABLAS
   ======================================= */
.data-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.data-table th {
    background-color: #0057A5;
    color: white;
    padding: 14px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 12px 15px;
    border: 1px solid #e2e2e2;
}

.data-table tr:nth-child(even) {
    background-color: #f6faff;
}

.data-table tr:hover {
    background-color: #e4f2ff;
    transition: 0.25s;
}

/* =======================================
   MENSAJES DE ESTADO
   ======================================= */
.success-message {
    background-color: #e5ffe7;
    border-left: 6px solid #2C5F2D;
    color: #1b4e24;
    padding: 18px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: bold;
}

.error-message {
    background-color: #ffe5e5;
    border-left: 6px solid #B00020;
    color: #8b0015;
    padding: 18px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: bold;
}

/* =======================================
   MENÚ Y NAVEGACIÓN
   ======================================= */
.container-links, .menu-crud {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #cccccc;
}

.container-links p a, .back-link p a {
    color: #0057A5;
    font-weight: bold;
    text-decoration: none;
    transition: 0.25s;
}

.container-links p a:hover, .back-link p a:hover {
    color: #003f76;
    text-decoration: underline;
}

.menu-crud ul {
    list-style-type: none;
    padding: 0;
}

.menu-crud li a {
    padding: 12px;
    background-color: #eef5ff;
    border-left: 6px solid #0057A5;
    color: #003b6d;
    display: block;
    transition: 0.25s;
    border-radius: 4px;
}

.menu-crud li a:hover {
    background-color: #dcecff;
    border-left-color: #003b6d;
}

/* =======================================
   PANEL DE INFORMACIÓN
   ======================================= */
info {
    display: block;
    padding: 12px;
    background-color: #f0fff3;
    border-left: 4px solid #78BE20;
    border-radius: 6px;
    color: #2C5F2D;
    font-style: italic;
    margin-bottom: 15px;
}

/* ============================================
   LOGIN: CONTENEDOR PRINCIPAL
   ============================================ */
.login-container {
    width: 90%;
    max-width: 420px;
    margin: 80px auto;
    background: white;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
    border-top: 8px solid #78BE20;
    text-align: center;
    animation: fadeIn 0.9s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-container h1 {
    font-size: 1.9em;
    color: #0057A5;
    margin-bottom: 5px;
    font-weight: 800;
}

.subtitulo {
    color: #2C5F2D;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 25px;
}

/* ============================================
   MENSAJE DE ERROR
   ============================================ */
.alerta-error {
    background-color: #ffe5e5;
    color: #8b0015;
    border-left: 6px solid #B00020;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    font-weight: bold;
}

/* ============================================
   FORMULARIO LOGIN
   ============================================ */
.form-wrapper {
    text-align: left;
}

.input-group {
    margin-bottom: 18px;
}

.input-group label {
    font-weight: bold;
    color: #0057A5;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #bbcbbb;
    border-radius: 8px;
    margin-top: 5px;
    font-size: 1em;
    transition: 0.25s;
}

.input-group input:focus {
    border-color: #78BE20;
    box-shadow: 0 0 10px rgba(120, 190, 32, 0.45);
    outline: none;
}

.password-container {
    display: flex;
    align-items: center;
}

/* ============================================
   BOTÓN DE ACCESO
   ============================================ */
input[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #78BE20;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.15em;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 10px;
}

input[type="submit"]:hover {
    background-color: #2C5F2D;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
    transform: translateY(-2px);
}

/* ============================================
   CREDITOS
   ============================================ */
.creditos {
    font-style: italic;
    color: #555;
}
