/* --- Extracted from 02_SUPER_ADMIN_MODE_UI.css --- */
/* === SUPER ADMIN MODE UI === */
.sale-mode-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin: 10px 0;
}

.sale-mode-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
}

.sale-mode-buttons {
    display: flex;
    gap: 5px;
}

.sale-mode-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sale-mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sale-mode-btn.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sale-mode-indicator {
    transition: all 0.2s ease;
}

.sale-mode-indicator:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.price-grid-admin {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.price-item-admin {
    display: flex;
    flex-direction: column;
}

.price-label-admin {
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.price-value-admin {
    font-size: 0.85rem;
    font-weight: 700;
}


.auth-container {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-float);
    border: 1px solid var(--border);
}

/* Hero Section (Phone Parts Background with Blue Watermark Overlay) */
.auth-hero {
    flex: 1.1;
    background: rgba(26, 26, 26, 0.9);
    /* Gris Plomo 90% Opacidad (Igual a Landing) */
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    align-self: stretch;
    margin: 0;
}

/* Blue Watermark Pattern Overlay */
.auth-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to top, transparent 40%, rgba(255, 255, 255, 0.15) 100%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mobile-auth-logo {
    display: none;
    /* Hidden on desktop */
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.mobile-auth-logo img.app-brand-logo {
    max-width: 180px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.hero-logo {
    max-width: 260px;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin-bottom: 40px;
    padding: 0;
    background: transparent;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-logo:hover {
    transform: translateY(-8px) scale(1.02);
}

.hero-slogan {
    font-size: 2.2rem;
    color: #ffffff;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 50px;
    letter-spacing: -0.04em;
    text-align: center;
    font-family: var(--font-body);
    text-transform: lowercase;
}

.hero-slogan span {
    display: block;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 2rem;
    font-family: 'Outfit', sans-serif;
}

.auth-hero-features {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    padding: 0;
    width: 100%;
    justify-content: flex-start;
    letter-spacing: 0.04em;
    font-family: 'Outfit', sans-serif;
}

.hero-feature i {
    font-size: 1.5rem;
    color: #DC2626;
    /* Bright Corporate Red */
    opacity: 1;
    width: 28px;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 0 8px rgba(220, 38, 38, 0.4));
    /* LED glow effect */
}


/* Auth Card - Perfectly flushed inside wrapper */
.auth-card {
    flex: 1.25;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    color: var(--text-main);
    align-self: stretch;
    justify-content: flex-start;
    /* Changed from center to ensure top nav visibility */
    margin: 0;
    overflow-y: auto;
    max-height: 95vh;
}

/* Custom scrollbar for better UX */
.auth-card::-webkit-scrollbar {
    width: 6px;
}

.auth-card::-webkit-scrollbar-track {
    background: transparent;
}

.auth-card::-webkit-scrollbar-thumb {
    background: rgba(211, 22, 40, 0.1);
    border-radius: 10px;
}

.auth-card::-webkit-scrollbar-thumb:hover {
    background: rgba(211, 22, 40, 0.2);
}

.login-header-wrapper {
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary);
}

/* Consolidated Input Styles */
.auth-card .form-group label {
    color: rgba(26, 26, 26, 0.85);
    /* Gris Plomo 85% */
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.auth-card input {
    border: 1px solid rgba(26, 26, 26, 0.12);
    /* Subtle Gris Plomo border */
    background: #fdfdfd;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
    width: 100%;
    transition: all 0.3s;
}

.auth-card input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(211, 22, 40, 0.1);
    outline: none;
}

.auth-hero-features .hero-feature span {
    color: #d1d5db;
    /* Gray-300 for better readability on dark */
}

.login-welcome-text {
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    font-family: 'Outfit', sans-serif;
}

.auth-footer-credits {
    color: #1a1a1a;
    opacity: 0.5;
    /* Subtle Gris Plomo */
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    margin-top: 30px;
}

/* Button Refinement - Solid Blue */
.auth-card .btn-primary {
    background: var(--primary);
    color: white;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(211, 22, 40, 0.2);
    border: none;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(211, 22, 40, 0.3);
    background: var(--primary-dark);
}

.auth-tabs {
    display: flex;
    background: rgba(26, 26, 26, 0.05);
    /* Gris Plomo sutil */
    padding: 5px;
    border-radius: 14px;
    margin-bottom: 25px;
    gap: 4px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    color: rgba(26, 26, 26, 0.5);
    /* Inactivo sutil */
    font-size: 0.9rem;
}

.auth-tab.active {
    background: white;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.auth-footer-container {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.auth-footer-credits {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Duplicated blocks removed and consolidated above */

.auth-card input:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(211, 22, 40, 0.1);
}

.forgot-password-link {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.forgot-password-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-card .btn-primary {
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 25px;
    border-radius: 18px;
    box-shadow: 0 10px 20px rgba(211, 22, 40, 0.2);
}

/* Mobile Responsive */
@media (max-width: 1000px) {
    .auth-hero {
        display: none;
    }

    .mobile-auth-logo {
        display: block;
        margin-bottom: 20px;
    }

    .auth-wrapper {
        max-width: 380px;
        /* Sleeker mobile width */
        margin: 15px auto;
        max-height: 90vh;
    }

    .auth-card {
        padding: 25px 20px;
        /* More compact padding */
        justify-content: flex-start;
        max-height: 100%;
    }

    .login-welcome-text {
        font-size: 1.1rem !important;
        /* Slightly smaller on mobile */
    }

    .auth-card input {
        padding: 12px 16px;
        /* Reduced size */
        font-size: 16px;
        /* Enforced 16px to prevent iOS auto-zoom */
    }

    .form-group-mb-15,
    .form-group-mb-20 {
        margin-bottom: 15px !important;
        /* Balanced spacing */
    }

    .auth-card .btn-primary {
        padding: 16px;
        font-size: 1.05rem;
        margin-top: 20px;
        border-radius: 15px;
    }

    .forgot-password-link {
        font-size: 0.9rem;
        padding: 5px 0;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px 15px;
        /* Maximum compactness */
    }

    .auth-wrapper {
        border-radius: 20px;
        max-height: 92vh;
        width: 100%;
        max-width: 92%;
        margin: 10px auto;
    }

    .login-header-wrapper,
    .auth-tabs {
        margin-bottom: 18px;
    }
}



