/* assets/css/login.css - Estilos modo claro/vivo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Contenedor principal */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px;
    position: relative;
}

/* Formularios */
.form {
    width: 380px;
    min-height: 580px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.form_front, .form_back {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 45px 35px;
    border-radius: 25px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    height: 100%;
}

/* Ocultar formulario de registro por defecto */
.form-back {
    display: none;
}

/* Cuando el toggle está marcado, mostrar registro y ocultar login */
#signup_toggle:checked ~ .form-front {
    display: none;
}

#signup_toggle:checked ~ .form-back {
    display: flex;
}

.form_details {
    font-size: 32px;
    font-weight: 700;
    padding-bottom: 15px;
    color: #333;
    letter-spacing: 1px;
}

.input {
    width: 280px;
    min-height: 48px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
    padding: 0 15px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    font-size: 15px;
}

.input::placeholder {
    color: #999;
    font-weight: 400;
}

.input:focus {
    transform: scale(1.02);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-color: white;
}

.btn {
    padding: 12px 45px;
    cursor: pointer;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    border: none;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    color: white;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
    width: fit-content;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.switch {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

.signup_tog {
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: #667eea;
    transition: color 0.3s ease;
    margin-left: 5px;
}

.signup_tog:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Ocultar el checkbox */
#signup_toggle {
    display: none;
}

/* Mensajes de alerta */
.alert {
    width: 380px;
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.4s ease;
    border-left: 4px solid;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert.error {
    background: #fee;
    color: #c33;
    border-left-color: #c33;
}

.alert.success {
    background: #efe;
    color: #3c3;
    border-left-color: #3c3;
}

.alert.warning {
    background: #ffe;
    color: #fc3;
    border-left-color: #fc3;
}

.app-title {
    text-align: center;
    margin-bottom: 30px;
}

.app-title h1 {
    font-size: 48px;
    font-weight: 800;
    color: white;  /* ✅ BLANCO PURO */
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Sombra sutil para resaltar */
}

.app-title p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-top: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.footer {
    margin-top: 30px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
}

/* Estilos adicionales para el formulario */
.form_front, .form_back {
    transition: all 0.3s ease;
}

/* Efecto de elevación al hover */
.form_front:hover, .form_back:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Estilo para el teléfono (si lo usas) */
.phone-input-container {
    position: relative;
    width: 280px;
}

select#pais_codigo {
    position: absolute;
    left: 0;
    top: 0;
    width: 85px;
    height: 48px;
    background-color: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 12px 0 0 12px;
    color: #333;
    padding: 0 5px 0 15px;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    border-right: none;
    z-index: 2;
}

select#pais_codigo:hover {
    background-color: #e8e8e8;
}

select#pais_codigo option {
    background-color: white;
    color: #333;
    padding: 10px;
}

input[name="telefono"] {
    padding-left: 95px !important;
    width: 280px;
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .form {
        width: 320px;
    }
    
    .input {
        width: 240px;
    }
    
    .alert {
        width: 320px;
    }
    
    .app-title h1 {
        font-size: 36px;
    }
}