/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* ── Login Page ── */
.nestly-login-wrapper {
    display: flex;
    min-height: 100dvh;
    width: 100%;
}

.nestly-login-brand {
    display: none;
    width: 45%;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
    color: white;
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.nestly-login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.nestly-login-brand::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.nestly-login-brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 360px;
}

.nestly-login-logo {
    margin-bottom: 1.5rem;
}

.nestly-login-icon {
    width: 64px;
    height: 64px;
    color: #fbbf24;
    margin: 0 auto;
    filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
}

.nestly-login-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nestly-login-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
}

.nestly-login-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, rgba(251, 191, 36, 0.3));
    border-radius: 999px;
    margin: 2rem auto;
}

.nestly-login-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    text-align: left;
}

.nestly-login-feature {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.nestly-feature-icon {
    width: 18px;
    height: 18px;
    color: #fbbf24;
    flex-shrink: 0;
}

.nestly-login-copyright {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.nestly-login-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: rgb(var(--gray-50));
}

.dark .nestly-login-form-panel {
    background-color: rgb(var(--gray-950));
}

.nestly-login-form-container {
    width: 100%;
    max-width: 28rem;
}

.nestly-login-form-container .fi-simple-page-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 24px rgba(0, 0, 0, 0.04);
}

.dark .nestly-login-form-container .fi-simple-page-content {
    background: rgb(var(--gray-900));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.nestly-login-mobile-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.nestly-login-icon-sm {
    width: 48px;
    height: 48px;
    color: #f59e0b;
}

/* Desktop: show brand panel, hide mobile logo */
@media (min-width: 1024px) {
    .nestly-login-brand {
        display: flex;
    }

    .nestly-login-mobile-logo {
        display: none;
    }
}

/* Override Filament's default simple layout centering */
.nestly-login-wrapper .fi-simple-layout {
    min-height: auto;
}

.nestly-login-wrapper .fi-simple-main-ctn {
    display: contents;
}

.nestly-login-wrapper .fi-simple-main {
    margin: 0;
    padding: 0;
}
