/* Japs POS — login & dashboard polish */

/* ─── Login ─── */
.japs-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

.japs-auth-brand {
    display: none;
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 3rem 3.5rem;
    color: #fff;
    background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 45%, #0c4a6e 100%);
}

@media (min-width: 992px) {
    .japs-auth-brand {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

.japs-auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(56, 189, 248, 0.25), transparent),
        radial-gradient(ellipse 60% 50% at 90% 10%, rgba(99, 102, 241, 0.2), transparent);
    pointer-events: none;
}

.japs-auth-brand::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.japs-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 28rem;
}

.japs-auth-brand h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 1rem;
    color: #fff;
}

.japs-auth-brand p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
}

.japs-auth-brand-features {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.japs-auth-brand-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    list-style: none;
}

.japs-auth-brand-features svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.9;
}

.japs-auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem 3rem;
    min-height: 100vh;
}

.japs-auth-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    pointer-events: none;
}

.japs-auth-topbar > * {
    pointer-events: auto;
}

@media (max-width: 991px) {
    .japs-auth-topbar .tw-dw-dropdown summary {
        color: #0f172a !important;
    }
}

.japs-auth-topbar .japs-auth-logo img {
    height: 2.5rem;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.japs-auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-radius: 1.25rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.06),
        0 20px 50px -12px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 2rem 2rem 2.25rem;
}

.japs-auth-card-logo {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--theme-800, #0040c1), var(--theme-700, #004eeb));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px -4px color-mix(in srgb, var(--theme-800, #0040c1) 40%, transparent);
}

.japs-auth-card-logo img {
    max-height: 2rem;
    max-width: 2rem;
    object-fit: contain;
}

.japs-auth-card h1 {
    color: #0f172a !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0;
    letter-spacing: -0.02em;
}

.japs-auth-card .japs-auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0.35rem 0 1.75rem;
}

.japs-auth-card .form-group label.tw-dw-form-control {
    position: relative;
    display: block;
}

.japs-auth-card input[type="text"],
.japs-auth-card input[type="password"] {
    width: 100%;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.japs-auth-card input[type="text"]:focus,
.japs-auth-card input[type="password"]:focus {
    border-color: var(--theme-700, #004eeb) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-700, #004eeb) 18%, transparent);
    outline: none;
}

.japs-auth-btn {
    width: 100%;
    height: 3rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--theme-800, #0040c1), var(--theme-700, #004eeb));
    box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--theme-800, #0040c1) 45%, transparent);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.japs-auth-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px color-mix(in srgb, var(--theme-800, #0040c1) 50%, transparent);
}

.japs-auth-demo {
    width: 100%;
    max-width: 520px;
    margin-bottom: 1.5rem;
}

.japs-auth-demo .box {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12);
}

.japs-auth-input {
    width: 100%;
    border: 1px solid #e2e8f0;
    outline: none;
    height: 3rem;
    background: #fff;
    border-radius: 0.5rem;
    padding: 0 0.75rem;
    font-weight: 500;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.japs-auth-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.japs-auth-input:focus {
    border-color: var(--theme-700, #0369a1) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-700, #0369a1) 18%, transparent);
}

.japs-auth-input--password {
    padding-right: 2.5rem;
}

.japs-auth-toggle-pw {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #64748b;
}

.japs-auth-alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    border: 1px solid #bfdbfe;
}

.japs-auth-footer {
    margin-top: 1.5rem;
    padding-top: 0.25rem;
}

.japs-auth-main--wide {
    align-items: flex-start;
    padding-top: 5rem;
}

.japs-auth-card--wide {
    max-width: 52rem;
    width: 100%;
}

.japs-auth-register-form .form-group {
    margin-bottom: 1rem;
}

.japs-auth-register-form legend {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    border: none;
    margin-bottom: 0.75rem;
}

.japs-auth-register-form .box-footer,
.japs-auth-register-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.japs-auth-register-form .btn-primary,
.japs-auth-register-form button[type="submit"] {
    background: linear-gradient(135deg, var(--theme-800, #075985), var(--theme-700, #0369a1));
    border: none;
    border-radius: 0.75rem;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
}


/* ─── Dashboard ─── */
.japs-dashboard-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 1.5rem 1.5rem;
    margin: 0 -0.01rem;
}

.japs-dashboard-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm1 1h38v38H1V1z' fill='%23fff' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.japs-dashboard-hero .tw-px-5 {
    position: relative;
    z-index: 1;
}

.japs-dashboard-welcome {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.japs-dashboard-welcome-sub {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    margin-top: 0.35rem;
    font-weight: 400;
}

.japs-dashboard-stats > div[class*='tw-bg-white'] {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.japs-dashboard-stats > div[class*='tw-bg-white']:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.12);
}

.japs-dashboard-stats .tw-inline-flex[class*='tw-rounded-full'] {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.japs-dashboard-filter-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.japs-dashboard-content {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 120px, #f1f5f9 100%);
}

.japs-dashboard-content .tw-bg-white.tw-rounded-xl {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.japs-dashboard-content .tw-bg-white.tw-rounded-xl:hover {
    box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.1);
}
