/* ============================================
   Customer Authentication Pages - Enhanced Design
   Modern, Responsive, Dark/Light Theme Support
   ============================================ */

/* ============================================
   Global Auth Page Styles
   ============================================ */

/* Container & Layout */
.login-card {
    background: var(--section, #ffffff);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border, #e5e7eb);
    transition: all 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Header Section */
.login-card .w-70px {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.2));
}

.login-card h2 {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: var(--title, #1f2937);
    margin-bottom: 2rem !important;
    position: relative;
}

.login-card h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(
        90deg,
        var(--web-primary, #3b82f6) 0%,
        #8b5cf6 100%
    );
    border-radius: 2px;
}

/* ============================================
   Form Styles
   ============================================ */

/* Form Groups */
.customer-centralize-login-form .form-group,
#customer-register-form .form-group {
    margin-bottom: 1.5rem;
}

/* Labels */
.customer-centralize-login-form .form-label,
#customer-register-form .form-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--title, #374151);
    margin-bottom: 0.625rem;
    display: block;
    transition: color 0.3s ease;
}

/* Input Fields */
.customer-centralize-login-form .form-control,
#customer-register-form .form-control,
.phone-input-with-country-picker {
    height: 50px !important;
    padding: 0.75rem 1.125rem !important;
    font-size: 15px !important;
    border: 2px solid var(--border, #e5e7eb) !important;
    border-radius: 12px !important;
    background: var(--section, #ffffff) !important;
    color: var(--title, #1f2937) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: none !important;
}

.customer-centralize-login-form .form-control:focus,
#customer-register-form .form-control:focus,
.phone-input-with-country-picker:focus {
    border-color: var(--web-primary, #3b82f6) !important;
    background: var(--section, #ffffff) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1) !important;
    outline: none !important;
}

.customer-centralize-login-form .form-control::placeholder,
#customer-register-form .form-control::placeholder {
    color: var(--text-muted, #9ca3af);
    opacity: 1;
}

/* Password Toggle */
.password-toggle {
    position: relative;
}

.password-toggle .form-control {
    padding-right: 3rem !important;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted, #9ca3af);
    transition: color 0.3s ease;
    z-index: 5;
    display: flex;
    flex-direction: row-reverse;
}

.password-toggle-btn:hover {
    color: var(--web-primary, #3b82f6);
}

.password-toggle-indicator {
    font-size: 20px;
}

/* ============================================
   Remember Me & Forgot Password
   ============================================ */

.custom-control-label {
    font-size: 14px;
    color: var(--title, #374151);
    cursor: pointer;
    user-select: none;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--web-primary, #3b82f6);
    border-color: var(--web-primary, #3b82f6);
}

.forgot-password-link {
    font-size: 14px;
    color: var(--web-primary, #3b82f6);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-password-link:hover {
    color: var(--web-primary, #2563eb);
    text-decoration: underline;
}

/* ============================================
   Buttons
   ============================================ */

.btn--primary {
    height: 52px !important;
    padding: 0 2rem !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(
        135deg,
        var(--web-primary, #3b82f6) 0%,
        #2563eb 100%
    ) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.btn--primary::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4) !important;
}

.btn--primary:hover::before {
    left: 100%;
}

.btn--primary:active {
    transform: translateY(0) !important;
}

.btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Social Login Buttons
   ============================================ */

.social-media-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 1.5rem;
    background: var(--section, #ffffff);
    border: 2px solid var(--border, #e5e7eb);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--title, #374151);
    text-decoration: none;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-media-login-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-media-login-btn:hover {
    border-color: var(--web-primary, #3b82f6);
    background: rgba(59, 130, 246, 0.05);
    color: var(--web-primary, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-media-login-btn:active {
    transform: translateY(0);
}

/* ============================================
   Or Divider
   ============================================ */

.or-sign-in-with {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.or-sign-in-with span {
    position: relative;
    background: var(--section, #ffffff);
    padding: 0 1.5rem;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted, #9ca3af);
    z-index: 1;
}

.or-sign-in-with::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border, #e5e7eb);
    z-index: 0;
}

/* ============================================
   Sign Up Instruction
   ============================================ */

.text-black-50,
.text-muted {
    color: var(--text-muted, #6b7280) !important;
}

.text-primary {
    color: var(--web-primary, #3b82f6) !important;
}

.text-underline {
    text-decoration: underline;
    transition: all 0.3s ease;
}

.text-underline:hover {
    color: var(--web-primary, #2563eb) !important;
}

/* ============================================
   Recaptcha Container
   ============================================ */

#recaptcha_element,
.input-icons {
    border-radius: 12px;
    overflow: hidden;
}

.input-icons img {
    border-radius: 12px;
    border: 2px solid var(--border, #e5e7eb);
}

.get-regi-recaptcha-verify {
    transition: all 0.3s ease;
}

.get-regi-recaptcha-verify:hover {
    opacity: 0.8;
}

.get-regi-recaptcha-verify .icon {
    color: var(--web-primary, #3b82f6);
    font-size: 20px;
}

/* ============================================
   Terms & Conditions Checkbox
   ============================================ */

.custom-checkbox .custom-control-label {
    padding-left: 0.5rem;
}

.custom-checkbox .custom-control-label a {
    color: var(--web-primary, #3b82f6);
    font-weight: 600;
    text-decoration: underline;
}

.custom-checkbox .custom-control-label a:hover {
    color: var(--web-primary, #2563eb);
}

/* ============================================
   Input Required Icon
   ============================================ */

.input-required-icon {
    color: #ef4444;
    font-weight: 700;
    margin-left: 4px;
}

/* ============================================
   Dark Theme Support
   ============================================ */

[data-theme="dark"] .login-card,
[theme="dark"] .login-card {
    background: var(--dark-bg-primary, #0d1d35);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .login-card:hover,
[theme="dark"] .login-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .login-card h2,
[theme="dark"] .login-card h2 {
    color: var(--title, #e5e7eb);
}

[data-theme="dark"] .form-label,
[theme="dark"] .form-label {
    color: var(--title, #d1d5db);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .phone-input-with-country-picker,
[theme="dark"] .form-control,
[theme="dark"] .phone-input-with-country-picker {
    background: rgba(15, 23, 42, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: var(--title, #e5e7eb) !important;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .phone-input-with-country-picker:focus,
[theme="dark"] .form-control:focus,
[theme="dark"] .phone-input-with-country-picker:focus {
    border-color: var(--web-primary, #3b82f6) !important;
    background: rgba(15, 23, 42, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="dark"] .form-control::placeholder,
[theme="dark"] .form-control::placeholder {
    color: #6b7280;
}

[data-theme="dark"] .password-toggle-btn,
[theme="dark"] .password-toggle-btn {
    color: #9ca3af;
}

[data-theme="dark"] .password-toggle-btn:hover,
[theme="dark"] .password-toggle-btn:hover {
    color: var(--web-primary, #3b82f6);
}

[data-theme="dark"] .custom-control-label,
[theme="dark"] .custom-control-label {
    color: var(--title, #d1d5db);
}

[data-theme="dark"] .social-media-login-btn,
[theme="dark"] .social-media-login-btn {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--title, #d1d5db);
}

[data-theme="dark"] .social-media-login-btn:hover,
[theme="dark"] .social-media-login-btn:hover {
    border-color: var(--web-primary, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
    color: var(--web-primary, #3b82f6);
}

[data-theme="dark"] .or-sign-in-with span,
[theme="dark"] .or-sign-in-with span {
    background: var(--dark-bg-primary, #0d1d35);
}

[data-theme="dark"] .or-sign-in-with::before,
[theme="dark"] .or-sign-in-with::before {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .text-black-50,
[data-theme="dark"] .text-muted,
[theme="dark"] .text-black-50,
[theme="dark"] .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .input-icons img,
[theme="dark"] .input-icons img {
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 991.98px) {
    .login-card {
        padding: 2.5rem 2rem;
        border-radius: 16px;
    }

    .login-card .w-70px {
        width: 70px !important;
        height: 70px !important;
    }

    .login-card h2 {
        font-size: 24px !important;
    }

    .customer-centralize-login-form .form-control,
    #customer-register-form .form-control {
        height: 48px !important;
        font-size: 14px !important;
    }

    .btn--primary {
        height: 50px !important;
        font-size: 15px !important;
    }

    .social-media-login-btn {
        height: 48px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    }

    .login-card .w-70px {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 1rem;
    }

    .login-card h2 {
        font-size: 22px !important;
        margin-bottom: 1.5rem !important;
    }

    .login-card h2::after {
        width: 50px;
        height: 3px;
        bottom: -10px;
    }

    .customer-centralize-login-form .form-group,
    #customer-register-form .form-group {
        margin-bottom: 1.25rem;
    }

    .customer-centralize-login-form .form-label,
    #customer-register-form .form-label {
        font-size: 14px;
        margin-bottom: 0.5rem;
    }

    .customer-centralize-login-form .form-control,
    #customer-register-form .form-control {
        height: 46px !important;
        padding: 0.625rem 1rem !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .btn--primary {
        height: 48px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
    }

    .social-media-login-btn {
        height: 46px;
        font-size: 14px;
        border-radius: 10px;
        gap: 0.5rem;
    }

    .social-media-login-btn img {
        width: 22px;
        height: 22px;
    }

    .or-sign-in-with {
        margin: 1.5rem 0;
    }

    .or-sign-in-with span {
        font-size: 13px;
        padding: 0 1rem;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .login-card {
        padding: 1.75rem 1.25rem;
        border-radius: 12px;
    }

    .login-card h2 {
        font-size: 20px !important;
    }

    .customer-centralize-login-form .form-control,
    #customer-register-form .form-control {
        height: 44px !important;
        font-size: 13px !important;
    }

    .btn--primary {
        height: 46px !important;
        font-size: 14px !important;
    }

    .social-media-login-btn {
        height: 44px;
        font-size: 13px;
    }
}

/* ============================================
   Wider Form Layout for Desktop
   ============================================ */

@media (min-width: 992px) {
    /* Wider container for login */
    .login-card {
        max-width: 900px;
        margin: 0 auto;
    }

    /* Wider container for register */
    .__max-w-760 {
        max-width: 900px !important;
    }

    /* Better column spacing */
    .customer-centralize-login-form .col-md-6,
    #customer-register-form .col-sm-6 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 1200px) {
    .login-card {
        max-width: 1000px;
    }

    .__max-w-760 {
        max-width: 1000px !important;
    }
}

/* ============================================
   Animation & Transitions
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth Focus Animation */
.form-control:focus,
.phone-input-with-country-picker:focus {
    animation: focusPulse 0.3s ease-out;
}

@keyframes focusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    }
}

/* ============================================
   Phone Input Country Picker Styling
   ============================================ */

.iti {
    width: 100%;
}

.iti__flag-container {
    padding: 0 !important;
}

.iti__selected-flag {
    padding: 0 0.75rem !important;
    background: transparent !important;
}

.iti__country-list {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--border, #e5e7eb) !important;
    background: var(--section, #ffffff) !important;
}

.iti__country {
    padding: 0.625rem 1rem !important;
    transition: all 0.2s ease !important;
}

.iti__country:hover {
    background: rgba(59, 130, 246, 0.05) !important;
}

.iti__country.iti__highlight {
    background: rgba(59, 130, 246, 0.1) !important;
}

[data-theme="dark"] .iti__country-list,
[theme="dark"] .iti__country-list {
    background: var(--section, #0d1d35) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .iti__country:hover,
[theme="dark"] .iti__country:hover {
    background: rgba(59, 130, 246, 0.1) !important;
}
