/* ============================================
   ESTILOS PARA AUTENTICACIÓN (Login y Register)
   ============================================ */

/* Fuente */
@import url('https://fonts.googleapis.com/css?family=Numans');

/* Estilos base para páginas de autenticación */
html, body {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/Ocosingo.jpg') no-repeat center center/cover;
    background-size: cover;
    background-repeat: no-repeat;
    height: 100%;
    font-family: 'Numans', sans-serif;
}

.container {
    height: 100%;
    align-content: center;
}

/* Tarjeta de autenticación */
.card {
    margin: auto;
    width: 600px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 193, 7, 0.3);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    color: white;
}

.card-header {
    background: rgba(255, 193, 7, 0.1);
    border-bottom: 1px solid rgba(255, 193, 7, 0.3);
    padding: 25px;
}

.card-header h3 {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
    margin: 0;
    font-size: 1.8rem;
}

.card-body {
    padding: 35px;
}

.card-footer {
    background: rgba(255, 193, 7, 0.1);
    border-top: 1px solid rgba(255, 193, 7, 0.3);
    padding: 20px;
    font-size: 1.1rem;
    color: #fff;
}

.card-footer a {
    color: #ffc107 !important;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}

/* Inputs y formularios */
.input-group-prepend span {
    width: 50px;
    background-color: #FFC312;
    color: black;
    border: 0 !important;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 1rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    color: white;
    outline: none !important;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Labels */
label, .form-label {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.form-check-label {
    color: #fff;
    font-size: 1rem;
}

/* Botones */
.login_btn, .btn-warning {
    color: black;
    background: linear-gradient(45deg, #ffc107, #ff9800);
    border: none;
    width: 100%;
    font-weight: bold;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.login_btn:hover, .btn-warning:hover {
    background: linear-gradient(45deg, #ff9800, #ffc107);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 193, 7, 0.4);
    color: black;
}

/* Enlaces */
a {
    color: #ffc107;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
    font-weight: 600;
}

a:hover {
    color: #ff9800;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}

/* Mensajes de error */
small.text-danger {
    color: #ff6b6b !important;
}

/* Alertas */
.alert {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.5);
}

/* Texto secundario */
.text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem !important;
}

.text-center p {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.text-center p small {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.text-center a {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffc107 !important;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.8);
}

/* Estilos específicos para login cuando usa layout.app */
/* Estos estilos solo se aplican cuando la vista extiende layouts.app */
main .container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

main .card {
    overflow: hidden;
    width: 100%;
    max-width: 98%;
    min-width: 1200px;
}

/* Responsive */
@media (max-width: 768px) {
    /* Estilos responsive para register (sin layout) */
    .card {
        width: 95%;
        max-width: 95%;
    }
    
    .card-body {
        padding: 25px;
    }
    
    /* Estilos responsive para login (con layout) */
    main .container {
        min-height: calc(100vh - 150px);
    }
    
    main .card {
        width: 95%;
        max-width: 95%;
        min-width: auto;
    }
}

