* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    color: #fff;
    min-height: 100vh;
}
.auth-body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
}
.login-card, .card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
}
.login-card {
    width: 100%;
    max-width: 430px;
    padding: 30px;
}
.brand-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(129,140,248,0.25);
    color: #c7d2fe;
    margin-bottom: 16px;
    font-size: 14px;
}
h1, h2, h3 { margin-bottom: 10px; }
.muted { color: #cbd5e1; margin-bottom: 16px; }
.form-grid { display: grid; gap: 14px; }
label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #e2e8f0;
}
input, select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
}
input::placeholder { color: #94a3b8; }
select option { color: #111827; }
.btn {
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 11px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
}
.btn.primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.btn.danger { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.btn.small { padding: 8px 12px; font-size: 13px; }
.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}
.alert.error { background: rgba(220,38,38,0.18); border: 1px solid rgba(248,113,113,0.35); }
.alert.success { background: rgba(22,163,74,0.18); border: 1px solid rgba(74,222,128,0.35); }
.demo-box {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255,255,255,0.07);
    color: #e2e8f0;
    line-height: 1.8;
    font-size: 14px;
}
.panel-body { padding: 24px; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.top-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.grid-2 {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    margin-bottom: 20px;
}
.card { padding: 22px; }
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.single-row { grid-template-columns: repeat(3, 1fr); }
.stat-box {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 16px;
}
.stat-box span {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 8px;
}
.stat-box strong {
    font-size: 18px;
    line-height: 1.4;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td {
    text-align: left;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    vertical-align: middle;
}
.badge, .self-tag {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(129,140,248,0.22);
    color: #e0e7ff;
    font-size: 12px;
}
.self-tag { background: rgba(34,197,94,0.18); color: #bbf7d0; }
.profile-card { text-align: center; max-width: 650px; margin: 0 auto; }
.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    text-align: left;
    margin-top: 18px;
}
.hero-card p { color: #dbeafe; margin-bottom: 18px; }

@media (max-width: 900px) {
    .grid-2, .stats, .single-row, .profile-grid {
        grid-template-columns: 1fr;
    }
}

.page-alert { margin-bottom: 20px; }
.action-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.edit-card { max-width: 760px; margin: 0 auto; }


.auth-premium {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(99,102,241,0.28), transparent 28%),
        radial-gradient(circle at bottom right, rgba(168,85,247,0.22), transparent 32%),
        linear-gradient(135deg, #050816 0%, #0f172a 45%, #1e1b4b 100%);
}
.auth-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    align-items: center;
}
.auth-showcase {
    padding: 20px 10px 20px 6px;
}
.auth-showcase h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.03;
    margin-bottom: 14px;
}
.hero-text {
    max-width: 620px;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 26px;
}
.feature-list {
    display: grid;
    gap: 14px;
    max-width: 620px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 18px 35px rgba(0,0,0,0.16);
    backdrop-filter: blur(8px);
}
.feature-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}
.feature-item p {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 14px;
}
.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.95), rgba(168,85,247,0.95));
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(99,102,241,0.35);
}
.premium-login-card {
    position: relative;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.07));
}
.card-glow {
    position: absolute;
    inset: -80px auto auto -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129,140,248,0.32), transparent 65%);
    pointer-events: none;
}
.login-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    position: relative;
    z-index: 2;
}
.tiny-label {
    color: #a5b4fc;
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.login-head h2 {
    margin: 0;
    font-size: 28px;
}
.login-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    font-size: 24px;
    box-shadow: 0 12px 26px rgba(79,70,229,0.4);
}
.login-form-premium {
    position: relative;
    z-index: 2;
}
.input-wrap {
    position: relative;
}
.input-wrap input {
    padding-left: 46px;
    height: 52px;
    border-radius: 15px;
    background: rgba(255,255,255,0.07);
    transition: 0.25s ease;
}
.input-wrap input:focus {
    border-color: rgba(165,180,252,0.65);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.14);
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    text-align: center;
    color: #a5b4fc;
    font-weight: 700;
    pointer-events: none;
}
.big-btn {
    height: 52px;
    border-radius: 15px;
    font-size: 15px;
    letter-spacing: 0.2px;
    box-shadow: 0 14px 28px rgba(79,70,229,0.34);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.big-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 34px rgba(79,70,229,0.42);
}
.premium-demo-box {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}
.demo-title {
    font-size: 13px;
    font-weight: 700;
    color: #c7d2fe;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.demo-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
}
.demo-row:first-of-type {
    border-top: none;
}
.demo-row span {
    color: #cbd5e1;
}
.demo-row strong {
    color: #fff;
    text-align: right;
}
.premium-badge {
    background: rgba(99,102,241,0.22);
    border: 1px solid rgba(165,180,252,0.22);
    box-shadow: 0 10px 22px rgba(79,70,229,0.18);
}
.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    opacity: 0.72;
    pointer-events: none;
    animation: floaty 8s ease-in-out infinite;
}
.orb-1 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(99,102,241,0.42), transparent 64%);
    top: 5%;
    left: 4%;
}
.orb-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(168,85,247,0.34), transparent 66%);
    bottom: 3%;
    right: 5%;
    animation-delay: 1.8s;
}
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.55), transparent 88%);
    pointer-events: none;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-14px) translateX(8px); }
}
@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
    }
    .auth-showcase {
        order: 2;
        padding-top: 0;
    }
    .premium-login-card {
        order: 1;
    }
}
@media (max-width: 640px) {
    .premium-login-card {
        padding: 22px;
        border-radius: 18px;
    }
    .login-head h2 {
        font-size: 24px;
    }
    .feature-item {
        padding: 14px;
    }
    .demo-row {
        display: block;
    }
    .demo-row strong {
        display: block;
        text-align: left;
        margin-top: 4px;
    }
}
