/* ==========================================================================
   ChnPrints Premium Auth Page Styles V2
   ========================================================================== */

/* CSS Variables */
:root {
    --chn-accent: var(--e-global-color-primary, #CCB899);
    --chn-accent-hover: #bfa580;
    --chn-surface-900: #2D2A26;
    --chn-surface-50: #FAF9F6;
    --chn-text-muted: #888;
    --chn-border-light: rgba(0, 0, 0, 0.08);
    --chn-card-bg: rgba(255, 255, 255, 0.92);
    --chn-card-border: rgba(255, 255, 255, 0.7);
    --chn-shadow-soft: 0 20px 50px -12px rgba(45, 42, 38, 0.08);
    --chn-radius-card: 28px;
    --chn-radius-input: 16px;
    --chn-radius-btn: 16px;
}

/* ========================================
   Wrapper & Background
======================================== */
.chn-auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65vh;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative Orbs */
.chn-auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    animation: chn-float 12s ease-in-out infinite;
}

.chn-auth-orb--1 {
    top: 10%;
    left: 8%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(204, 184, 153, 0.08), transparent);
}

.chn-auth-orb--2 {
    bottom: 5%;
    right: 5%;
    width: 250px;
    height: 250px;
    background: linear-gradient(315deg, rgba(204, 184, 153, 0.12), transparent);
    animation-delay: -6s;
}

@keyframes chn-float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(15px, -10px);
    }
}

/* ========================================
   Auth Card
======================================== */
.chn-auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--chn-card-bg);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--chn-card-border);
    border-radius: var(--chn-radius-card);
    padding: 48px 40px;
    box-shadow: var(--chn-shadow-soft);
    position: relative;
    z-index: 10;
}

/* ========================================
   View Toggle
======================================== */
.chn-auth-view {
    animation: chn-fadeIn 0.3s ease-out forwards;
}

.chn-auth-view--hidden {
    display: none !important;
}

@keyframes chn-fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Header
======================================== */
.chn-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.chn-auth-title {
    font-family: var(--e-global-typography-primary-font-family, 'Outfit', sans-serif);
    font-size: 2rem;
    font-weight: 500;
    color: var(--chn-surface-900);
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
    text-transform: none !important;
}

.chn-auth-subtitle {
    font-size: 0.875rem;
    color: var(--chn-text-muted);
    font-weight: 400;
    margin: 0;
}

/* ========================================
   Form
======================================== */
.chn-auth-form {
    display: block;
    background-color: transparent !important;
    box-shadow: none !important;
}

.chn-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.chn-form-label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin: 0;
    margin-left: 2px;
}

.chn-form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.chn-forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--chn-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.chn-forgot-link:hover {
    color: var(--chn-surface-900);
}

/* Input */
.chn-form-input {
    width: 100%;
    height: auto;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    background: #f8f8f8;
    border: 1px solid transparent;
    border-radius: var(--chn-radius-input);
    transition: all 0.2s ease;
    outline: none;
}

.chn-form-input::placeholder {
    color: #bbb;
    font-weight: 400;
}

.chn-form-input:focus {
    background: #fff;
    border-color: var(--chn-accent);
    box-shadow: 0 0 0 3px rgba(204, 184, 153, 0.12);
}

/* Checkbox */
.chn-form-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
    margin-bottom: 20px;
}

.chn-form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--chn-accent);
    cursor: pointer;
}

.chn-form-checkbox label {
    font-size: 13px;
    color: var(--chn-text-muted);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    margin: 0;
    padding-top: 1px;
    /* Align text baseline */
    display: inline-block;
}

/* Notes */
.chn-form-note {
    font-size: 13px;
    color: var(--chn-text-muted);
    padding: 12px 14px;
    background: #f5f5f5;
    border-radius: 10px;
    margin: 0;
    margin-bottom: 20px;
}

.chn-privacy-text {
    font-size: 12px;
    color: var(--chn-text-muted);
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 20px;
}

.chn-privacy-link {
    color: var(--chn-accent);
    text-decoration: none;
    font-weight: 500;
}

.chn-privacy-link:hover {
    text-decoration: underline;
}

/* Submit Button */
.chn-submit-btn {
    width: 100%;
    padding: 16px 24px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #fff !important;
    background: var(--chn-accent) !important;
    border: none !important;
    border-radius: var(--chn-radius-btn) !important;
    box-shadow: 0 8px 20px -4px rgba(204, 184, 153, 0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px !important;
    display: block;
}

.chn-submit-btn:hover {
    background: var(--chn-surface-900) !important;
    box-shadow: 0 8px 20px -4px rgba(45, 42, 38, 0.25);
    transform: translateY(-1px);
}

.chn-submit-btn:active {
    transform: scale(0.98);
}

/* ========================================
   Social Login
======================================== */
.chn-social-divider {
    display: flex;
    align-items: center;
    margin: 24px 0 20px 0;
    text-align: center;
}

.chn-social-divider::before,
.chn-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e5e5;
}

.chn-social-divider span {
    padding: 0 14px;
    font-size: 12px;
    font-weight: 500;
    color: #aaa;
    text-transform: lowercase;
}

.chn-social-login {
    display: flex;
    gap: 12px;
}

.chn-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: var(--chn-radius-input);
    font-size: 13px;
    font-weight: 600;
    color: var(--chn-surface-900);
    text-decoration: none;
    transition: all 0.2s ease;
}

.chn-social-btn:hover {
    border-color: var(--chn-accent);
    background: #fdfcfb;
    transform: translateY(-1px);
}

.chn-social-btn--fb {
    color: #1877F2;
}

.chn-social-btn--google span {
    color: var(--chn-surface-900);
}

/* ========================================
   Switch Link
======================================== */
.chn-auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--chn-text-muted);
    font-weight: 400;
}

.chn-auth-switch-link {
    color: var(--chn-accent);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.chn-auth-switch-link:hover {
    color: var(--chn-surface-900);
    text-decoration: underline;
}

/* ========================================
   Turnstile/Captcha Override
======================================== */
.chn-auth-form .cf-turnstile,
.chn-auth-form .wpcf7-form-control-wrap {
    margin-top: 10px;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 480px) {
    .chn-auth-wrapper {
        padding: 30px 16px;
        min-height: auto;
    }

    .chn-auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .chn-auth-title {
        font-size: 1.5rem;
    }

    .chn-auth-orb {
        display: none;
    }

    .chn-social-login {
        flex-direction: column;
    }
}

/* ========================================
   Hide Original Woodmart Elements
======================================== */
.wd-registration-page {
    display: none !important;
}