/* ============================================
   CUSTOMER LOGIN & REGISTER SHARED STYLES
   Complete customer-facing auth design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ============================================
   ROOT VARIABLES (Default - Overridden by inline)
   ============================================ */
:root {
    --primary: #FF5722;
    --primary-dark: #E64A19;
    --primary-light: #FF572233;
    --primary-gradient: linear-gradient(135deg, #FF5722, #E64A19);
    --secondary: #FFC107;
    --text-dark: #1a1a2e;
    --text-light: #6c757d;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --shadow: 0 25px 55px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 35px 65px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* ============================================
   AUTH SECTION - Clean White Background
   ============================================ */

/* Page background - pure white */
body.auth-page {
    background: #ffffff !important;
    min-height: 100vh;
}

body.auth-page .customer-auth-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    background: #ffffff !important;
}

/* Remove all dark overlays and gradients */
body.auth-page .customer-auth-section::before,
body.auth-page .customer-auth-section::after {
    display: none !important;
}

/* ============================================
   AUTH CARD - White with Shadow
   ============================================ */
.auth-card {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 50px 45px 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.auth-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

/* ============================================
   AUTH HEADER
   ============================================ */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

/* ============================================
   AUTH LOGO
   ============================================ */
.auth-logo {
    margin-bottom: 10px;
    text-align: center;
}

.auth-logo-img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.auth-logo-img:hover {
    transform: scale(1.05);
}

/* Auth Icon Fallback */
.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    background: var(--primary-gradient);
    border-radius: 50%;
    font-size: 30px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(255, 87, 34, 0.25);
    margin-bottom: 12px;
    transition: var(--transition);
}

.auth-icon:hover {
    transform: scale(1.05) rotate(-5deg);
}

.auth-title {
    font-family: 'Poppins', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    letter-spacing: -0.5px;
}

.auth-title .highlight {
    color: var(--primary);
}

.auth-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-light);
    margin: 0;
}

/* ============================================
   AUTH FORM
   ============================================ */
.auth-form {
    margin-top: 5px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group label i {
    color: var(--primary);
    margin-right: 6px;
    font-size: 13px;
}

.form-control {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: #f8f9fa;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: #b0b0b0;
    font-weight: 300;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 87, 34, 0.1);
    background: #ffffff;
}

.form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.1);
}

/* ============================================
   FORM OPTIONS (Login)
   ============================================ */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 22px 0 28px 0;
}

.checkbox-custom {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    user-select: none;
}

.checkbox-custom input[type="checkbox"] {
    display: none;
}

.checkbox-custom .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    background: #fff;
}

.checkbox-custom input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-custom input:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 11px;
}

.checkbox-custom:hover .checkmark {
    border-color: var(--primary);
}

.forgot-link {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   AUTH BUTTON
   ============================================ */
.btn-auth {
    width: 100%;
    height: 50px;
    background: var(--primary-gradient);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(255, 87, 34, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-auth::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg) translateX(-100%);
    transition: 0.6s;
}

.btn-auth:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 87, 34, 0.35);
}

.btn-auth:active {
    transform: translateY(0) scale(0.98);
}

.btn-auth i {
    font-size: 16px;
}

/* ============================================
   AUTH DIVIDER
   ============================================ */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 28px 0 22px 0;
    color: #b0b0b0;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e8e8;
}

/* ============================================
   GOOGLE LOGIN / REGISTER - CUSTOM CARD BUTTON
   ============================================ */
.google-login-wrapper {
    margin-bottom: 22px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.google-btn-custom {
    width: 100%;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-decoration: none;
}

.google-btn-custom:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.1);
    transform: translateY(-2px);
    background: #fafafa;
}

.google-btn-custom:active {
    transform: translateY(0);
}

.google-btn-custom .google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.google-btn-custom .btn-text {
    flex: 1;
    text-align: center;
}

/* ============================================
   AUTH FOOTER
   ============================================ */
.auth-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   LOGIN BACKGROUND - Right Side
   ============================================ */
.login-bg-image {
    background: url('../images/login-bg.jpg') no-repeat center center;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    overflow: hidden;
}

.login-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10,10,15,0.3), rgba(10,10,15,0.6));
}

.login-bg-content {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 2;
    text-align: right;
}

.login-bg-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.login-bg-dot {
    color: var(--primary);
}

.login-bg-tagline {
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.login-bg-divider {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary));
    margin: 15px 0 15px auto;
    border-radius: 2px;
}

.login-bg-contact {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin: 6px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.login-bg-contact i {
    color: var(--primary);
    margin-right: 10px;
}

.login-bg-copyright {
    color: rgba(255,255,255,0.2);
    font-size: 11px;
    margin-top: 12px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.login-bg-heart {
    color: var(--primary);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    border: none;
    margin-bottom: 16px;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.08);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-danger i {
    color: #dc3545;
    margin-right: 8px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.08);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-success i {
    color: #28a745;
    margin-right: 8px;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loading-spinner {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    padding: 30px 40px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 200px;
}

.loading-spinner i {
    font-size: 40px;
    color: var(--primary);
    animation: spin 1s linear infinite;
}

.loading-spinner p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   PASSWORD TOGGLE
   ============================================ */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #b0b0b0;
    transition: var(--transition);
    background: none;
    border: none;
    padding: 5px;
}

.password-toggle:hover {
    color: var(--primary);
}

.input-group-relative {
    position: relative;
}

.input-group-relative .form-control {
    padding-right: 45px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .auth-card {
        padding: 40px 35px 35px;
        max-width: 480px;
    }
    
    .auth-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    body.auth-page .customer-auth-section {
        min-height: 80vh;
        padding: 30px 15px;
    }
    
    .auth-card {
        padding: 30px 24px 25px;
        max-width: 100%;
        border-radius: 12px;
    }
    
    .auth-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 13px;
    }
    
    .form-control {
        height: 44px;
        font-size: 13px;
    }
    
    .btn-auth {
        height: 44px;
        font-size: 14px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 18px 0 22px 0;
    }

    .auth-logo-img {
        max-height: 40px;
    }
    
    .login-bg-content {
        bottom: 20px;
        right: 20px;
    }
    
    .login-bg-brand {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 25px 18px 20px;
        border-radius: 10px;
    }
    
    .auth-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .form-control {
        height: 40px;
        font-size: 12px;
        padding: 0 12px;
    }
    
    .btn-auth {
        height: 40px;
        font-size: 13px;
    }
    
    .auth-footer p {
        font-size: 12px;
    }

    .auth-logo-img {
        max-height: 35px;
    }

    .auth-divider {
        font-size: 10px;
        margin: 20px 0 16px 0;
    }
    
    .login-bg-content {
        bottom: 15px;
        right: 15px;
    }
    
    .login-bg-brand {
        font-size: 16px;
    }
    
    .login-bg-tagline {
        font-size: 10px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.min-vh-75 {
    min-height: 75vh;
}

.text-primary-custom {
    color: var(--primary);
}

.bg-primary-gradient {
    background: var(--primary-gradient);
}

.border-primary-custom {
    border-color: var(--primary) !important;
}

.shadow-primary {
    box-shadow: 0 5px 25px rgba(255, 87, 34, 0.25);
}