/* ============================================
   SALON SYNC - MODERN AUTH PAGES
   Dark Neumorphic Design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================
   AUTH PAGE BASE
   ========================================== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0f12 !important;
    background-image: none !important;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

/* Override container restrictions */
.auth-page .containe,
.auth-page .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.auth-page .row {
    margin: 0 !important;
    width: 100% !important;
    justify-content: center !important;
}

.auth-page .col-xl-4,
.auth-page .col-lg-6,
.auth-page .col-md-8 {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
}

.auth-page .py-5.px-3 {
    padding: 0 !important;
}

/* Background Effects */
.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 30, 40, 0.5) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.auth-page::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   AUTH CARD - NEUMORPHIC DESIGN
   ========================================== */
.register-bg,
.auth-card {
    background: #16161a !important;
    border-radius: 32px !important;
    box-shadow: 
        30px 30px 60px #0a0a0c,
        -30px -30px 60px #222228,
        inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
    padding: 50px 40px !important;
    width: 100%;
    min-width: 380px;
    max-width: 450px;
    position: relative;
    z-index: 1;
    border: none !important;
}

/* Card Accent Line */
.register-bg::before,
.auth-card::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(99, 102, 241, 0.5), 
        transparent);
    border-radius: 2px;
}

/* ==========================================
   LOGO & HEADER
   ========================================== */
.register-bg .text-center.mb-5,
.auth-card .auth-header {
    margin-bottom: 40px !important;
    text-align: center !important;
}

.register-bg .logo-main,
.register-bg .logo-main img,
.auth-card .logo img {
    height: 45px !important;
    filter: brightness(1.1);
    margin-bottom: 30px;
}

.register-title,
.register-bg h5,
.auth-card h5 {
    color: #e0e0e0 !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    letter-spacing: -0.02em;
    margin-bottom: 8px !important;
    white-space: nowrap;
}

.register-bg .font-size-14.mb-5,
.register-bg p.font-size-14,
.auth-card .subtitle {
    color: #6b6b6b !important;
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
}

/* ==========================================
   FORM LABELS
   ========================================== */
.auth-page .form-label,
.register-bg .form-label {
    display: block;
    text-align: left;
    margin-bottom: 10px !important;
    font-size: 0.7rem !important;
    color: #5a5a5a !important;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500 !important;
}

.auth-page .form-label .text-danger {
    color: #ef4444 !important;
}

/* ==========================================
   INPUT FIELDS - NEUMORPHIC STYLE
   ========================================== */
.auth-page .form-control,
.register-bg .form-control {
    width: 100%;
    border-radius: 14px !important;
    background: #16161a !important;
    box-shadow: 
        inset 6px 6px 12px #0e0e11,
        inset -6px -6px 12px #1e1e23 !important;
    border: none !important;
    padding: 16px 20px !important;
    color: #b0b0b0 !important;
    font-size: 0.95rem !important;
    font-family: 'Inter', sans-serif;
    outline: none !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    height: auto !important;
}

.auth-page .form-control::placeholder {
    color: #404040 !important;
    letter-spacing: 0.05em;
}

.auth-page .form-control:focus {
    box-shadow: 
        inset 4px 4px 8px #0e0e11,
        inset -4px -4px 8px #1e1e23,
        0 0 0 2px rgba(99, 102, 241, 0.2) !important;
    color: #d0d0d0 !important;
    background: #18181c !important;
}

/* Input Group */
.auth-page .input-group,
.auth-page .custom-input-group {
    position: relative;
    display: flex !important;
    width: 100% !important;
}

.auth-page .input-group .form-control,
.auth-page .custom-input-group .form-control {
    padding-right: 50px !important;
    flex: 1 !important;
    width: 100% !important;
}

.auth-page .input-group-text,
.auth-page .custom-input-group .input-group-text {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: #505050 !important;
    padding: 0 !important;
    cursor: pointer;
    z-index: 5;
    transition: color 0.3s;
    height: auto !important;
    width: auto !important;
}

.auth-page .input-group-text:hover {
    color: #808080 !important;
}

/* Form Group */
.auth-page .form-group {
    width: 100% !important;
    margin-bottom: 20px !important;
}

.auth-page .row.gy-4 {
    width: 100% !important;
    margin: 0 !important;
}

.auth-page .col-lg-12 {
    width: 100% !important;
    padding: 0 !important;
}

/* ==========================================
   REMEMBER ME & FORGOT PASSWORD
   ========================================== */
.auth-page .form-check-input {
    width: 18px;
    height: 18px;
    background: #16161a !important;
    border: none !important;
    box-shadow: 
        inset 3px 3px 6px #0e0e11,
        inset -3px -3px 6px #1e1e23 !important;
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.3s;
}

.auth-page .form-check-input:checked {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3) !important;
}

.auth-page .font-size-14 {
    color: #606060 !important;
    font-size: 0.85rem !important;
}

.auth-page a.fw-semibold,
.auth-page a.text-primary {
    color: #8b8bf5 !important;
    text-decoration: none !important;
    transition: all 0.3s;
    font-style: normal !important;
}

.auth-page a.fw-semibold:hover,
.auth-page a.text-primary:hover {
    color: #a5a5ff !important;
    text-decoration: underline !important;
}

/* ==========================================
   SUBMIT BUTTON - NEUMORPHIC STYLE
   ========================================== */
.auth-page .btn-secondary,
.auth-page .auth-btn .btn {
    width: 100%;
    padding: 16px 24px !important;
    border-radius: 14px !important;
    background: #16161a !important;
    box-shadow: 
        8px 8px 16px #0a0a0c,
        -8px -8px 16px #222228 !important;
    border: none !important;
    color: #7a7a7a !important;
    font-weight: 600 !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.25s ease !important;
    position: relative;
    overflow: hidden;
}

.auth-page .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.04), 
        transparent);
    transition: left 0.5s ease;
}

.auth-page .btn-secondary:hover::before {
    left: 100%;
}

.auth-page .btn-secondary:hover {
    color: #a0a0a0 !important;
    box-shadow: 
        10px 10px 20px #080808,
        -10px -10px 20px #242428 !important;
    transform: translateY(-1px);
}

.auth-page .btn-secondary:active {
    box-shadow: 
        inset 5px 5px 10px #0a0a0c,
        inset -5px -5px 10px #222228 !important;
    transform: scale(0.98);
    color: #606060 !important;
}

/* Google Button */
.auth-page .google-btn {
    background: #16161a !important;
    box-shadow: 
        6px 6px 12px #0a0a0c,
        -6px -6px 12px #222228 !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    transition: all 0.25s ease !important;
}

.auth-page .google-btn:hover {
    box-shadow: 
        8px 8px 16px #080808,
        -8px -8px 16px #242428 !important;
    transform: translateY(-1px);
}

.auth-page .google-btn:active {
    box-shadow: 
        inset 4px 4px 8px #0a0a0c,
        inset -4px -4px 8px #222228 !important;
}

/* ==========================================
   FOOTER LINKS
   ========================================== */
.auth-page .d-flex.justify-content-center {
    margin-top: 30px !important;
}

.auth-page .text-body {
    color: #505050 !important;
}

/* Decorative Strata Lines */
.auth-strata {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 35px;
}

.auth-strata-line {
    height: 2px;
    background: #2a2a2e;
    border-radius: 1px;
}

.auth-strata-line:nth-child(1) { width: 25px; }
.auth-strata-line:nth-child(2) { width: 15px; opacity: 0.6; }
.auth-strata-line:nth-child(3) { width: 8px; opacity: 0.3; }

/* ==========================================
   ALERTS
   ========================================== */
.auth-page .alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
}

.auth-page .invalid-feedback,
.auth-page .text-danger {
    color: #f87171 !important;
    font-size: 0.8rem !important;
    margin-top: 8px;
}

/* ==========================================
   MODAL ENHANCEMENTS
   ========================================== */
.auth-page .modal-content {
    background: #16161a !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
}

.auth-page .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 20px 24px !important;
}

.auth-page .modal-title {
    color: #e0e0e0 !important;
}

.auth-page .modal-body {
    padding: 24px !important;
}

.auth-page .btn-close {
    filter: invert(1) brightness(0.6);
}

/* Branch Card in Modal */
.auth-page .branch-card {
    background: #1a1a1e !important;
    border-radius: 16px !important;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.03),
        4px 4px 12px #0a0a0c,
        -4px -4px 12px #222228 !important;
    transition: all 0.3s !important;
}

.auth-page .branch-card:hover,
.auth-page .branch-card.selected {
    box-shadow: 
        0 0 0 2px rgba(99, 102, 241, 0.4),
        4px 4px 12px #0a0a0c,
        -4px -4px 12px #222228 !important;
}

.auth-page .branch-card .branch-info-box {
    background: #16161a !important;
}

.auth-page .branch-card h5 a {
    color: #d0d0d0 !important;
}

.auth-page .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 16px 24px !important;
}

.auth-page .modal-footer .btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3) !important;
}

.auth-page .modal-footer .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(99, 102, 241, 0.4) !important;
    transform: translateY(-1px);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 575.98px) {
    .register-bg,
    .auth-card {
        padding: 40px 28px !important;
        border-radius: 24px !important;
        margin: 0 10px;
    }
    
    .auth-page .form-control {
        padding: 14px 16px !important;
    }
    
    .auth-page .btn-secondary {
        padding: 14px 20px !important;
    }
}

/* ==========================================
   DARK MODE SUPPORT (already dark)
   ========================================== */
[data-bs-theme="dark"] .auth-page {
    background: #0a0a0d !important;
}

[data-bs-theme="dark"] .register-bg {
    background: #121215 !important;
}
