* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f8f8, #e0e0e0);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

span {
    color: red;
}

.container {
  
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.header {
    background: #FFD700;
    /* Amarillo institucional */
    color: #000000;
    /* Negro para el texto */
    padding: 25px;
    text-align: center;
    position: relative;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #333;
}
.form-container {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555; /* Color plomo para las etiquetas */
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.form-group input:focus {
    border-color: #FFD700;
    /* Amarillo institucional */
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background-color: white;
}
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #f9f9f9;
    appearance: none; /* Quita el estilo por defecto del navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='10' height='5' viewBox='0 0 10 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23555' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 5px;
}

.form-group select:focus {
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background-color: white;
}
.form_title{
    text-align: center;

}

.btn {
    width: 100%;
    padding: 12px;
    background: #FFD700;
    /* Amarillo institucional */
    color: #000000;
    /* Negro para el texto */
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: #e6c200;
    /* Amarillo más oscuro al hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.switch-form {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    /* Color plomo */
}

.switch-form a {
    color: #000000;
    /* Negro institucional */
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px dashed #000;
}

.switch-form a:hover {
    color: #FFD700;
    /* Amarillo al hover */
    border-bottom: 1px dashed #FFD700;
}

.institution-field {
    position: relative;
}

.institution-field::after {
    content: "UTB";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #FFD700;
    /* Amarillo institucional */
}


.mensaje-arriba {
    position: fixed;
    top: 10px;
    right: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    z-index: 9999;
}
    
.mensaje-arriba .mensaje {
    background-color: #FFD700; /* Amarillo similar al encabezado */
    color: #000000; /* Texto negro para mejor visibilidad */
    padding: 10px 16px;
    border-radius: 6px; /* Más cuadrado */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    font-size: 13px;
    font-weight: bold;
    max-width: 300px;
    text-align: right;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
    
.mensaje-arriba .mensaje:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
    cursor: default;
}

/* ===========PANTALLA DE CARGA  CSS CHAMOS ======== */
#loader-overlay {
    position: fixed;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
/* =========MEDIA QUERIS ======================= */
@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .header h1 {
        font-size: 1.5rem;
    }

    .form-container {
        padding: 20px;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .logo span {
        font-size: 1.5rem;
    }
}