/* ==========================================================================
   AUTH PAGE — Split-Screen Login / Register — Reis & Irvy's Brand
   ========================================================================== */

/* ---- NUCLEAR RESET ---- */
.woocommerce-account .entry-header,
.woocommerce-account .page-description,
.woocommerce-account #primary .storefront-breadcrumb,
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account .site-header,
.woocommerce-account .site-footer,
.woocommerce-account .storefront-handheld-footer-bar,
.woocommerce-account .storefront-breadcrumb,
.woocommerce-account #secondary {
    display: none !important;
}

.woocommerce-account .site-content,
.woocommerce-account .hentry,
.woocommerce-account .entry-content,
.woocommerce-account #primary,
.woocommerce-account #content,
.woocommerce-account .col-full,
.woocommerce-account .woocommerce {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce-account .site-main {
    padding: 0 !important;
    margin: 0 !important;
}

body.woocommerce-account:not(.logged-in) {
    background: #fff;
    overflow: hidden;
}

body.woocommerce-account:not(.logged-in) .site-header,
body.woocommerce-account:not(.logged-in) .site-footer,
body.woocommerce-account:not(.logged-in) .storefront-handheld-footer-bar,
body.woocommerce-account:not(.logged-in) .storefront-breadcrumb {
    display: none !important;
}

.woocommerce-account .u-columns,
.woocommerce-account #customer_login {
    display: none !important;
}

/* ---- SPLIT LAYOUT ---- */
.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    background: #fff;
}

/* ---- LEFT SIDE: FORM ---- */
.auth-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
    overflow-y: auto;
    position: relative;
}

.auth-form-container {
    width: 100%;
    max-width: 420px;
}

/* ---- BRAND / LOGO ---- */
.auth-brand {
    margin-bottom: 36px;
}

.auth-logo {
    max-width: 150px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.auth-logo:hover {
    transform: scale(1.04);
}

/* ---- AUTH TABS ---- */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: #f4f5f7;
    border-radius: 10px;
    padding: 4px;
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #718096;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
    font-family: inherit;
}

.auth-tab:hover { color: #1a202c; }

.auth-tab.active {
    background: #fff;
    color: #1a202c;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* ---- TAB CONTENT ---- */
.auth-tab-content {
    display: none;
    animation: authFadeIn 0.3s ease;
}

.auth-tab-content.active { display: block; }

@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- FORM HEADER ---- */
.auth-form-header { margin-bottom: 28px; }

.auth-form-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.auth-form-header p {
    font-size: 14px;
    color: #718096;
    margin: 0;
    line-height: 1.5;
}

/* ---- FORM FIELDS ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field label,
.auth-form .auth-label-row label {
    font-size: 12px;
    font-weight: 700;
    color: #4a5568;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-forgot-link {
    font-size: 12px;
    color: #ff6e80;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: #e55a6d;
    text-decoration: underline;
}

/* ---- INPUT WRAPPER ---- */
.auth-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrapper i:first-child {
    position: absolute;
    left: 14px;
    color: #a0aec0;
    font-size: 13px;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.auth-input-wrapper input {
    width: 100%;
    padding: 12px 44px 12px 40px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1a202c;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
}

.auth-input-wrapper input::placeholder {
    color: #cbd5e0;
    font-weight: 400;
}

/* Focus state — subtle, no colored glow */
.auth-input-wrapper input:focus {
    border-color: #b0bec5;
    box-shadow: none;
    background: #fff;
}

.auth-input-wrapper input:-webkit-autofill,
.auth-input-wrapper input:-webkit-autofill:focus,
.auth-input-wrapper input:-webkit-autofill:hover {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #1a202c !important;
    background-color: #fff !important;
}

.auth-input-wrapper:focus-within > i:first-child {
    color: #718096;
}

/* Valid state */
.auth-input-wrapper input.is-valid {
    border-color: #48bb78;
    box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

/* Invalid state */
.auth-input-wrapper input.is-invalid {
    border-color: #fc8181;
    box-shadow: 0 0 0 3px rgba(252, 129, 129, 0.1);
}

/* ---- VALIDATION MESSAGE ---- */
.auth-field-msg {
    font-size: 12px;
    font-weight: 500;
    margin-top: 2px;
    display: none;
    align-items: center;
    gap: 4px;
}

.auth-field-msg.show { display: flex; }
.auth-field-msg.is-error { color: #e53e3e; }
.auth-field-msg.is-success { color: #38a169; }

/* ---- PASSWORD TOGGLE ---- */
.auth-toggle-password {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 40px;
    background: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    outline: none;
    color: #a0aec0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: color 0.2s;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
}

.auth-toggle-password:hover { color: #4a5568; background: #fff; }
.auth-toggle-password:focus { outline: none; }

/* ---- PORTAL HINT ---- */
.auth-portal-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    font-size: 13px;
    color: #4a5568;
    line-height: 1.5;
}

.auth-portal-hint i {
    color: #60a5fa;
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 13px;
}

.auth-portal-link {
    color: #60a5fa;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-portal-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* ---- REMEMBER ME ---- */
.auth-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    user-select: none;
}

.auth-checkbox-label input[type="checkbox"] { display: none; }

.auth-checkbox-custom {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1.5px solid #cbd5e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom {
    background: #ff6e80;
    border-color: #ff6e80;
}

.auth-checkbox-label input[type="checkbox"]:checked + .auth-checkbox-custom::after {
    content: '✓';
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* ---- SUBMIT BUTTON ---- */
.auth-submit-btn {
    width: 100%;
    padding: 13px 20px;
    background: #ff6e80;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 10px rgba(255, 110, 128, 0.35);
    margin-top: 6px;
}

.auth-submit-btn:hover {
    background: #e55a6d;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 110, 128, 0.45);
}

.auth-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 110, 128, 0.3);
}

.auth-submit-btn i {
    font-size: 12px;
    transition: transform 0.2s;
}

.auth-submit-btn:hover i { transform: translateX(3px); }

.auth-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Loading shimmer on disabled */
.auth-submit-btn.is-loading {
    background: linear-gradient(90deg, #ff6e80 25%, #ff8fa3 50%, #ff6e80 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* ---- SWITCH PROMPT ---- */
.auth-switch-prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #718096;
}

.auth-switch-link {
    background: none;
    border: none;
    color: #ff6e80;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    margin-left: 4px;
    font-family: inherit;
    transition: color 0.2s;
}

.auth-switch-link:hover {
    color: #e55a6d;
    text-decoration: underline;
}

/* ---- INFO NOTE ---- */
.auth-info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

.auth-info-note i {
    margin-top: 2px;
    flex-shrink: 0;
    color: #d97706;
}

/* ---- AUTH FOOTER ---- */
.auth-footer {
    margin-top: 40px;
    text-align: center;
}

.auth-footer p {
    font-size: 12px;
    color: #a0aec0;
    margin: 0;
}

/* ---- RIGHT SIDE: VISUAL ---- */
.auth-visual-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d6eaff;
    position: relative;
    overflow: hidden;
}

.auth-visual-card {
    position: relative;
    z-index: 2;
    background: transparent;
    border-radius: 32px;
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    max-width: 80%;
}

.auth-visual-image {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.10));
}

/* ---- WOOCOMMERCE NOTICE OVERRIDES ---- */
.auth-form-container .woocommerce-notices-wrapper,
.auth-form-container .woocommerce-NoticeGroup,
.auth-form-container .woocommerce-NoticeGroup-checkout {
    display: block !important;
}

.auth-form-container .woocommerce-error,
.auth-form-container .woocommerce-info,
.auth-form-container .woocommerce-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
    list-style: none;
    border-left: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.auth-form-container .woocommerce-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: #e53e3e;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-form-container .woocommerce-error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.auth-form-container .woocommerce-info::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: #3182ce;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-form-container .woocommerce-info {
    background: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2b6cb0;
}

.auth-form-container .woocommerce-message::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
    color: #38a169;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-form-container .woocommerce-message {
    background: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #276749;
}

.auth-form-container .woocommerce-error li,
.auth-form-container .woocommerce-info li,
.auth-form-container .woocommerce-message li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-form-container .woocommerce-error a,
.auth-form-container .woocommerce-info a,
.auth-form-container .woocommerce-message a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* ---- WOOCOMMERCE DEFAULT OVERRIDES ---- */
.auth-form .woocommerce-form-row,
.auth-form .form-row {
    padding: 0;
    margin: 0;
}

.auth-form p { margin: 0; }

.auth-form .woocommerce-form-row label,
.auth-form .form-row label {
    display: none;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .auth-visual-side { display: none; }
    .auth-form-side { padding: 32px 24px; }
}

@media (max-width: 600px) {
    .auth-form-side {
        padding: 24px 20px;
        align-items: flex-start;
        padding-top: 60px;
    }

    .auth-form-header h1 { font-size: 22px; }
    .auth-brand { margin-bottom: 28px; }
    .auth-logo { max-width: 120px; }

    .auth-submit-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .auth-input-wrapper input {
        padding: 11px 12px 11px 36px;
        font-size: 14px;
    }
}

/* ---- WP LOGIN PAGE ---- */
body.login { background: #fff !important; }
body.login #login { padding: 0 !important; }
