/* ============================================================
   SALONGO - MÓDULO AUTH (LOGIN & RECUPERACIÓN)
   Estilo Beauty Luxury & Glassmorphism
   ============================================================ */

.auth-bg {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: var(--bg-body, #F5EEDC);
    background-image: 
        radial-gradient(at 0% 0%, rgba(234, 214, 205, 0.45) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(212, 201, 177, 0.35) 0px, transparent 45%),
        radial-gradient(at 100% 100%, rgba(232, 220, 198, 0.4) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(140, 123, 104, 0.12) 0px, transparent 40%);
    position: relative;
    overflow: hidden;
}

.auth-bg::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: linear-gradient(135deg, rgba(234, 214, 205, 0.4), rgba(212, 201, 177, 0.25));
    border-radius: 50%;
    top: -120px;
    right: -120px;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.auth-bg::after {
    content: '';
    position: absolute;
    width: 360px;
    height: 360px;
    background: linear-gradient(135deg, rgba(184, 169, 146, 0.3), rgba(232, 220, 198, 0.2));
    border-radius: 50%;
    bottom: -90px;
    left: -90px;
    filter: blur(70px);
    z-index: 0;
    pointer-events: none;
}

:root {
    --primary: #8C7B68;
    --primary-hover: #756655;
    --primary-light: rgba(140, 123, 104, 0.12);
    --primary-gradient: linear-gradient(135deg, #A89E8E 0%, #8C7B68 50%, #756655 100%);
    --shadow-primary: 0 8px 24px rgba(140, 123, 104, 0.28);
    --btn-primary-bg: #8C7B68;
    --btn-primary-text: #FFFFFF;
    --btn-primary-shadow: 0 6px 20px rgba(140, 123, 104, 0.25);
    --border-color: #D9D1C5;
    --bg-body: #F5EEDC;
    --bg-card: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #8C7B68;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    border: 1px solid var(--border-color, rgba(226, 232, 240, 0.9));
    box-shadow: 0 20px 50px -10px var(--primary-light, rgba(212, 91, 122, 0.15)), 0 10px 30px -5px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    animation: authFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-header {
    text-align: center;
    padding: 36px 36px 12px;
}

.auth-logo-badge {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--primary-gradient, linear-gradient(135deg, #E27396 0%, #D45B7A 50%, #B84364 100%));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: 18px;
    box-shadow: var(--shadow-primary, 0 8px 24px rgba(212, 91, 122, 0.35));
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
}

.auth-logo-badge:hover {
    transform: scale(1.05) rotate(4deg);
}

.auth-logo-badge svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Contenedor limpio y premium para logotipo subido del salón */
.auth-logo-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    padding: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-logo-custom:hover {
    transform: scale(1.04);
}

.auth-logo-custom img {
    max-height: 80px;
    max-width: 220px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-title-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-light, rgba(226, 115, 150, 0.15));
    color: var(--primary, #D45B7A);
    border: 1px solid var(--primary-light, rgba(226, 115, 150, 0.25));
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.auth-subtitle {
    color: #64748B;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0;
}

.auth-body {
    padding: 20px 36px 36px;
}

.form-label-beauty {
    font-size: 0.83rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 7px;
    display: block;
}

.input-group-beauty {
    display: flex;
    align-items: stretch;
    background: #F8FAFC;
    border: 1.5px solid var(--border-color, #E2E8F0);
    border-radius: 12px;
    transition: all 0.2s ease;
    overflow: hidden;
}

.input-group-beauty:focus-within {
    border-color: var(--primary, #D45B7A);
    background: #FFFFFF;
    box-shadow: 0 0 0 4px var(--primary-light, rgba(212, 91, 122, 0.12));
}

.input-group-beauty .input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #94A3B8;
    background: transparent;
    font-size: 1.1rem;
    transition: color 0.2s ease;
}

.input-group-beauty:focus-within .input-icon {
    color: var(--primary, #D45B7A);
}

.input-group-beauty .form-control {
    border: none !important;
    background: transparent !important;
    padding: 12px 14px 12px 0;
    font-size: 0.925rem;
    color: #0F172A;
    font-weight: 500;
    box-shadow: none !important;
    width: 100%;
}

.input-group-beauty .form-control::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.input-group-beauty .btn-toggle-password {
    border: none;
    background: transparent;
    color: #94A3B8;
    padding: 0 14px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.input-group-beauty .btn-toggle-password:hover {
    color: var(--primary, #D45B7A);
}

.form-check-beauty .form-check-input {
    width: 1.1em;
    height: 1.1em;
    border: 1.5px solid #CBD5E1;
    border-radius: 5px;
    cursor: pointer;
}

.form-check-beauty .form-check-input:checked {
    background-color: var(--primary, #D45B7A);
    border-color: var(--primary, #D45B7A);
}

.form-check-beauty .form-check-label {
    cursor: pointer;
    color: #64748B;
    font-size: 0.85rem;
    user-select: none;
}

.btn-auth-submit {
    background: var(--btn-primary-bg, var(--primary-gradient, linear-gradient(135deg, #E27396 0%, #D45B7A 50%, #B84364 100%)));
    color: var(--btn-primary-text, #FFFFFF) !important;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    box-shadow: var(--btn-primary-shadow, var(--shadow-primary, 0 6px 20px rgba(212, 91, 122, 0.35)));
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary, 0 10px 25px rgba(212, 91, 122, 0.45));
    filter: brightness(1.06);
}

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

/* Selector elegante de Salones */
.salon-selector-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F1F5F9;
    border: 1px solid var(--border-color, #E2E8F0);
    border-radius: 10px;
    padding: 6px 12px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.salon-selector-badge select {
    background: transparent;
    border: none;
    font-size: 0.82rem;
    font-weight: 600;
    color: #0F172A;
    outline: none;
    cursor: pointer;
    padding-right: 4px;
}

/* Banner de Vista Previa para Super Admin */
.auth-preview-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #0F172A;
    color: #F8FAFC;
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.auth-preview-banner a {
    color: #38BDF8;
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    padding: 16px 36px 20px;
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
    font-size: 0.78rem;
    color: #94A3B8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .auth-card {
        border-radius: 20px;
    }
    .auth-header {
        padding: 30px 24px 10px;
    }
    .auth-body {
        padding: 15px 24px 28px;
    }
    .auth-footer {
        padding: 14px 20px 16px;
    }
}
