/**
 * ShopCore Customer Authentication & My Account Styles
 * Modern, high-converting login, signup, and customer dashboard
 */

.sc-auth-wrapper {
    padding: 50px 0 70px;
    background: #f8fafc;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.sc-auth-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* =========================================
   2-Panel Auth Grid Card
   ========================================= */
.sc-auth-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.09), 0 1px 3px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.sc-auth-single {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
}

/* =========================================
   Left Panel: Form Card
   ========================================= */
.sc-auth-card {
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
}

.sc-auth-header {
    text-align: center;
    margin-bottom: 26px;
}

.sc-auth-logo {
    display: inline-block;
    margin-bottom: 12px;
}

.sc-auth-logo img,
.sc-auth-logo .sc-auth-logo-img {
    max-height: 56px;
    max-width: 220px;
    width: auto;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    object-fit: contain;
}

.sc-auth-logo .site-title-brand {
    font-size: 28px;
}

.sc-auth-logo .site-title-primary {
    color: #0f172a;
}

.sc-auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.3px;
}

.sc-auth-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0;
}

/* =========================================
   Pill Tab Switcher
   ========================================= */
.sc-auth-tabs {
    display: flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 24px;
    gap: 4px;
}

.sc-auth-tab {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-auth-tab:hover {
    color: #0f172a;
}

.sc-auth-tab.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.sc-auth-tab.active i {
    color: var(--primary-color, #ef1d25);
}

/* Tab Panes */
.sc-auth-pane {
    display: none;
    animation: scFadeSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sc-auth-pane.active {
    display: block;
}

@keyframes scFadeSlide {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Modern Form Inputs
   ========================================= */
.sc-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sc-input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.sc-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.sc-input-group label .required {
    color: #ef1d25;
}

.sc-label-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color, #ef1d25);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sc-forgot-link:hover {
    text-decoration: underline;
}

.sc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.sc-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.sc-input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 42px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #0f172a !important;
    background: #ffffff !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.sc-input:focus {
    border-color: var(--primary-color, #ef1d25) !important;
    box-shadow: 0 0 0 3px rgba(239, 29, 37, 0.12) !important;
}

.sc-input-wrap:focus-within .sc-input-icon {
    color: var(--primary-color, #ef1d25);
}

/* Hide Microsoft Edge / Chrome / IE native password reveal and clear icons */
.sc-input::-ms-reveal,
.sc-input::-ms-clear,
.sc-password-input::-ms-reveal,
.sc-password-input::-ms-clear,
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Hide duplicate WooCommerce default injected password toggle */
.sc-auth-wrapper .show-password-input,
.sc-input-wrap .show-password-input,
.woocommerce-form .show-password-input {
    display: none !important;
}

.sc-input-wrap .password-input {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

/* Custom Password Show/Hide Toggle (Single Eye Icon) */
.sc-toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.15s ease;
    z-index: 5;
    line-height: 1;
}

.sc-toggle-password:hover {
    color: #0f172a;
    transform: translateY(-50%) scale(1.1);
}

/* Checkbox */
.sc-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.sc-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary-color, #ef1d25);
    cursor: pointer;
    border-radius: 4px;
}

/* Submit Button */
.sc-auth-btn {
    width: 100%;
    height: 50px;
    background: var(--primary-color, #ef1d25) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(239, 29, 37, 0.28) !important;
    transition: all 0.25s ease !important;
    letter-spacing: 0.2px;
}

.sc-auth-btn:hover {
    background: #d8141b !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(239, 29, 37, 0.4) !important;
}

.sc-auth-btn:active {
    transform: translateY(0) !important;
}

.sc-form-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sc-privacy-notice {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

.sc-privacy-notice p {
    margin: 0;
}

/* Switch Prompt */
.sc-auth-switch-prompt {
    text-align: center;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    font-size: 13px;
    color: #64748b;
}

.sc-switch-to-register,
.sc-switch-to-login {
    background: transparent;
    border: none;
    color: var(--primary-color, #ef1d25);
    font-weight: 700;
    cursor: pointer;
    margin-left: 4px;
    padding: 0;
    font-size: 13px;
    transition: text-decoration 0.2s ease;
}

.sc-switch-to-register:hover,
.sc-switch-to-login:hover {
    text-decoration: underline;
}

/* =========================================
   Right Panel: Member Perks Card
   ========================================= */
.sc-auth-perks-card {
    background: linear-gradient(155deg, #090c10 0%, #111827 50%, #030712 100%);
    color: #ffffff;
    padding: 45px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.sc-perks-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(239, 29, 37, 0.25) 0%, rgba(239, 29, 37, 0) 70%);
    pointer-events: none;
}

.sc-perks-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    width: fit-content;
}

.sc-perks-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.sc-perks-desc {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.sc-perks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 26px;
}

.sc-perk-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 14px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.sc-perk-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.06);
}

.sc-perk-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.sc-perk-flash {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.sc-perk-tracking {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

.sc-perk-preorder {
    background: rgba(239, 29, 37, 0.15);
    color: #ef1d25;
}

.sc-perk-service {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.sc-perk-text h4 {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 3px 0;
}

.sc-perk-text p {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

/* WhatsApp Support Box */
.sc-perks-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: auto;
}

.sc-perks-support-text span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.sc-perks-support-text strong {
    font-size: 12px;
    color: #ffffff;
}

.sc-perks-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #25d366;
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sc-perks-wa-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    color: #ffffff;
}

/* =========================================
   WooCommerce Error / Notices Styling
   ========================================= */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    border-radius: 12px !important;
    padding: 14px 20px 14px 48px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
}

.woocommerce-error {
    background: #fef2f2 !important;
    border-color: #fecaca !important;
    color: #991b1b !important;
}

.woocommerce-error::before {
    color: #ef1d25 !important;
}

.woocommerce-message {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #166534 !important;
}

.woocommerce-info {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #075985 !important;
}


/* =========================================
   Responsive Breakpoints
   ========================================= */
@media (max-width: 992px) {
    .sc-auth-grid {
        grid-template-columns: 1fr;
        max-width: 540px;
        margin: 0 auto;
    }

    .sc-auth-perks-card {
        display: none;
    }

    .sc-auth-card {
        padding: 36px 28px;
    }

}

@media (max-width: 576px) {
    .sc-auth-wrapper {
        padding: 30px 0 50px;
    }

    .sc-auth-card {
        padding: 28px 18px;
    }

    .sc-auth-title {
        font-size: 21px;
    }

    .sc-auth-tab {
        font-size: 13px;
        padding: 9px 12px;
    }

    .sc-input {
        height: 44px;
        font-size: 13px !important;
    }

    .sc-auth-btn {
        height: 46px;
        font-size: 14px !important;
    }
}
