/**
 * Earnmet — Filament split login page
 * Loaded via AdminPanelProvider / CustomerPanelProvider
 */

/* ── Page shell ─────────────────────────────────────────────── */

.earnmet-auth-page.fi-body {
    background: #3d3d3d !important;
}

.earnmet-auth-layout {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.earnmet-auth-card {
    position: relative;
    width: 100%;
    max-width: 56rem;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #ffffff;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.06);
}

.earnmet-auth-card::before {
    content: '';
    position: absolute;
    inset: 0 auto auto 0;
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 243, 208, 0.45) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Two-column grid ─────────────────────────────────────────── */

.earnmet-auth-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    min-height: 32rem;
}

@media (min-width: 768px) {
    .earnmet-auth-grid {
        grid-template-columns: 1fr 1fr;
        min-height: 36rem;
    }
}

/* ── Form column ───────────────────────────────────────────────── */

.earnmet-auth-form-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
    .earnmet-auth-form-col {
        padding: 3rem 2.75rem;
    }
}

.earnmet-auth-brand {
    margin-bottom: 2rem;
}

.earnmet-auth-logo {
    height: 2.5rem;
    width: auto;
    object-fit: contain;
}

.earnmet-auth-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4f46e5;
}

.earnmet-auth-heading {
    margin-bottom: 1.75rem;
}

.earnmet-auth-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.earnmet-auth-subtitle {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #9ca3af;
}

/* ── Form fields ───────────────────────────────────────────────── */

.earnmet-auth-form .fi-fo-field-wrp {
    margin-bottom: 0.25rem;
}

.earnmet-auth-form .fi-fo-field-wrp-label span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
}

.earnmet-auth-form .fi-input-wrp {
    border-radius: 0.5rem !important;
    border: 1.5px solid #d1d5db !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.earnmet-auth-form .fi-input-wrp:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

.earnmet-auth-form .fi-input {
    padding-top: 0.625rem !important;
    padding-bottom: 0.625rem !important;
    font-size: 0.9375rem !important;
}

/* Remember + Forgot row */
.earnmet-auth-form .fi-fo-grid {
    align-items: center;
    margin-top: 0.25rem;
}

.earnmet-auth-forgot-wrap {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
}

.earnmet-auth-forgot {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #e11d48;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.earnmet-auth-forgot:hover {
    color: #be123c;
    text-decoration: underline;
}

.earnmet-auth-form .fi-fo-checkbox label {
    font-size: 0.8125rem;
    color: #4b5563;
}

/* Submit button */
.earnmet-auth-form .fi-form-actions {
    margin-top: 1.25rem;
}

.earnmet-auth-form .fi-btn {
    border-radius: 0.5rem !important;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    background-color: #4f46e5 !important;
    box-shadow: 0 1px 2px rgba(79, 70, 229, 0.3) !important;
}

.earnmet-auth-form .fi-btn:hover {
    background-color: #4338ca !important;
}

.earnmet-auth-register {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

.earnmet-auth-seller {
    margin-top: 1rem;
}

.earnmet-auth-seller-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.earnmet-auth-seller-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

/* ── Hero / illustration column ────────────────────────────────── */

.earnmet-auth-hero-col {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(160deg, #f0f4ff 0%, #fafbff 55%, #ffffff 100%);
    border-left: 1px solid #e8edf8;
}

@media (min-width: 768px) {
    .earnmet-auth-hero-col {
        display: flex;
    }
}

.earnmet-auth-hero-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 18rem;
    aspect-ratio: 1;
    border: 2px solid #bfdbfe;
    border-radius: 0.75rem;
    background: #ffffff;
    overflow: hidden;
}

.earnmet-auth-hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.25rem;
}

.earnmet-auth-dots {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.earnmet-auth-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: #d1d5db;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.earnmet-auth-dot.is-active {
    background: #4f46e5;
    transform: scale(1.15);
}

.earnmet-auth-dot:hover:not(.is-active) {
    background: #9ca3af;
}

/* ── Hide default Filament simple-page chrome on auth ──────────── */

.earnmet-auth-page .fi-simple-header {
    display: none !important;
}
