/* Reset & Base */
.esteticlick-auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #334155;
    background: #f8fafc;
    min-height: 100vh;
}

/* Split Screen Layout */
.esteticlick-split-screen {
    display: flex;
    min-height: 100vh;
}

.esteticlick-split-left {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
}

.esteticlick-split-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1570172619644-dfd03ed5d881?q=80&w=1920&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
    opacity: 0.25;
    z-index: 1;
}

.esteticlick-split-left-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
    text-align: left;
}

.auth-brand-logo {
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.auth-brand-logo img {
    max-height: 50px;
    display: block;
}

.auth-brand-logo .brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.auth-brand-logo .brand-text span {
    color: var(--este-primary-color, #ea1d76);
}

.esteticlick-split-left-content h1 {
    font-size: 2.75rem;
    margin: 0 0 1rem 0;
    line-height: 1.25;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.esteticlick-split-left-content p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #cbd5e1;
    font-weight: 400;
}

.esteticlick-split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 2.5rem 2rem;
}

.esteticlick-auth-container {
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
}

/* Glassmorphism Card Box */
.esteticlick-auth-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* Header Tabs */
.esteticlick-auth-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.esteticlick-auth-tabs > button {
    flex: 1;
    padding: 1.1rem 0.75rem;
    background: none;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.esteticlick-auth-tabs > button.active {
    color: var(--este-primary-color, #ea1d76);
    background: #ffffff;
    border-bottom: 3px solid var(--este-primary-color, #ea1d76);
}

.esteticlick-auth-tabs > button:hover:not(.active) {
    background: #f8fafc;
    color: #334155;
}

/* View Container */
.esteticlick-auth-view {
    padding: 2rem 1.75rem;
}

.esteticlick-auth-view h2 {
    margin: 0 0 0.4rem 0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #0f172a;
}

.esteticlick-auth-view p {
    margin: 0 0 1.75rem 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Form Controls */
.esteticlick-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.esteticlick-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.esteticlick-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.esteticlick-form-group input[type="text"],
.esteticlick-form-group input[type="email"],
.esteticlick-form-group input[type="password"] {
    height: 48px;
    padding: 0 1rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px; /* 16px prevents iOS Safari automatic zoom */
    color: #0f172a;
    transition: all 0.2s ease;
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.esteticlick-form-group input:focus {
    outline: none;
    border-color: var(--este-primary-color, #ea1d76);
    box-shadow: 0 0 0 3px rgba(234, 29, 118, 0.12);
}

/* Password Eye Wrapper */
.esteticlick-password-wrapper {
    position: relative;
    width: 100%;
}

.esteticlick-password-wrapper input {
    padding-right: 46px !important;
}

.esteticlick-password-wrapper .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: color 0.2s;
}

.esteticlick-password-wrapper .toggle-password:hover {
    color: #475569;
}

.esteticlick-password-wrapper .toggle-password .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Name Row (Register) */
.name-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.name-col {
    flex: 1;
}

/* Terms Checkbox */
.terms-checkbox-group {
    display: flex;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 10px;
    margin-top: 5px;
}

.terms-checkbox-group input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-top: 2px;
    accent-color: var(--este-primary-color, #ea1d76);
    cursor: pointer;
}

.terms-checkbox-group label {
    font-size: 0.8rem !important;
    font-weight: 400 !important;
    color: #475569 !important;
    line-height: 1.4 !important;
    cursor: pointer;
}

.terms-checkbox-group label a {
    color: var(--este-primary-color, #ea1d76);
    text-decoration: underline;
    font-weight: 600;
}

/* Submit Button */
.esteticlick-btn-submit {
    height: 48px;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0 1.5rem;
    background: var(--este-primary-color, #ea1d76);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(234, 29, 118, 0.25);
}

.esteticlick-btn-submit:hover {
    background: #d01568;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(234, 29, 118, 0.35);
}

.esteticlick-btn-submit:active {
    transform: translateY(0);
}

.esteticlick-btn-submit:disabled {
    background: #cbd5e1;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Feedback Messages */
.esteticlick-feedback {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.esteticlick-feedback.error {
    display: block;
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.esteticlick-feedback.success {
    display: block;
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* Context Switch Link */
.context-switch-wrapper {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

.context-switch-wrapper a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.context-switch-wrapper a:hover {
    color: var(--este-primary-color, #ea1d76);
}

/* Social Divider */
.esteticlick-social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.25rem 0 0.75rem 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.esteticlick-social-divider::before,
.esteticlick-social-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.esteticlick-social-divider span {
    padding: 0 10px;
}

/* Native Social Buttons Grid */
.este-social-btns-grid {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.este-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.este-social-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.este-btn-google:hover { border-color: #ea4335; }
.este-btn-facebook:hover { border-color: #1877f2; }
.este-btn-apple:hover { border-color: #0f172a; }

/* Persistent Mobile Bottom Nav Bar */
.este-mobile-nav {
    display: none;
}

/* =========================================================
   TOP TECH COMPANY MOBILE AUTH SCREEN OPTIMIZATIONS (<768px)
   ========================================================= */
@media (max-width: 768px) {
    .esteticlick-split-screen {
        flex-direction: column;
        min-height: 100vh;
    }

    /* Collapse massive 300px hero image to a clean top header */
    .esteticlick-split-left {
        min-height: auto;
        padding: 1.25rem 1rem;
        flex: none;
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
        text-align: center;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .esteticlick-split-left::before {
        display: none; /* Hide background image overlay on mobile for fast load & clean UX */
    }

    .esteticlick-split-left-content {
        max-width: 100%;
        text-align: center;
    }

    .auth-brand-logo {
        margin-bottom: 0.25rem;
    }

    .auth-brand-logo img {
        max-height: 38px;
        margin: 0 auto;
    }

    .auth-brand-logo .brand-text {
        font-size: 1.5rem;
    }

    .esteticlick-split-left-content h1 {
        font-size: 1.2rem;
        margin: 0;
        font-weight: 700;
    }

    /* Hide long paragraphs on mobile to bring form immediately Above The Fold */
    .esteticlick-split-left-content p {
        display: none;
    }

    /* Form starts right at top with safe bottom padding for Mobile Nav */
    .esteticlick-split-right {
        padding: 1rem 1rem 90px 1rem; /* 90px padding bottom prevents overlap with Mobile Nav */
        align-items: flex-start;
    }

    .esteticlick-auth-container {
        max-width: 100%;
    }

    .esteticlick-auth-box {
        border-radius: 16px;
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    }

    .esteticlick-auth-view {
        padding: 1.25rem 1.15rem;
    }

    .esteticlick-auth-view h2 {
        font-size: 1.25rem;
    }

    .esteticlick-auth-view p {
        margin-bottom: 1.25rem;
        font-size: 0.85rem;
    }

    /* Mobile Bottom Navigation Bar Styles */
    .este-mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 65px !important;
        background: #ffffff !important;
        border-top: 1px solid #e2e8f0 !important;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06) !important;
        z-index: 99999 !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding-bottom: env(safe-area-inset-bottom) !important;
    }

    .este-mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #64748b;
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 700;
        gap: 3px;
        flex: 1;
        transition: color 0.2s ease;
    }

    .este-mobile-nav-item.active,
    .este-mobile-nav-item:hover {
        color: var(--este-primary-color, #ea1d76) !important;
    }

    .este-mobile-nav-item .dashicons {
        font-size: 22px !important;
        width: 22px !important;
        height: 22px !important;
    }
}