/* Estilos para login/registro */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 1rem;
}

.login-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 500px;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* ========== ESTILOS NUEVOS PARA GOOGLE ========== */
/* Agregar estos estilos a tu CSS existente */

/* Sección de Google Auth */
.google-auth-section {
    margin-bottom: 2rem;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    background: white;
    color: #333;
    border: 2px solid #dadce0;
    border-radius: 10px;
    font-size: 1rem; /* Reducido de 1.1rem */
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box; /* IMPORTANTE: evita desbordamiento */
}

.btn-google:hover {
    border-color: #dadce0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.btn-google:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.google-icon {
    width: 18px; /* Reducido de 20px */
    height: 18px; /* Reducido de 20px */
    flex-shrink: 0; /* Evita que se comprima */
}

/* Divisor */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    color: #666;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    background: white;
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Responsive para Google */
@media (max-width: 768px) {
    .btn-google {
        font-size: 0.95rem; /* Más pequeño en móvil */
        padding: 0.875rem 1.5rem;
    }
    
    .google-icon {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .btn-google {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }
}

/* Pestañas */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #ff6b35;
    color: white;
}

.tab-btn:hover {
    background: #ff7849;
    color: white;
}

/* Contenido de pestañas */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Formularios */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.form-input::placeholder {
    color: #adb5bd;
}

/* Botón principal */
.btn-auth {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
}

.btn-auth:hover {
    background: linear-gradient(135deg, #e55a2b, #e6841a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: bold;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #fbb;
}

.alert-success {
    background: #f0fff4;
    color: #2f855a;
    border: 1px solid #9ae6b4;
}

/* Enlaces */
.auth-links {
    text-align: center;
    margin-top: 1rem;
}

.auth-links a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.auth-links a:hover {
    color: #ff6b35;
}

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .login-box h1 {
        font-size: 1.5rem;
    }
}