@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --pink: #F91E65;
    --purple: #6305F4;
    --blue: #0558EA;
    --green: #0AB051;
    --gold: #FCA407;
    --ink: #111827;
    --muted: #6B7280;
    --line: rgba(17, 24, 39, .09);
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #F91E65 0%, #6305F4 62%, #0558EA 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    min-height: 100vh;
    font-family: Inter, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 15%, rgba(249, 30, 101, .12), transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(99, 5, 244, .14), transparent 34%),
        linear-gradient(135deg, #FFF8FB 0%, #F7F2FF 52%, #F3F7FF 100%);
}

a { color: inherit; text-decoration: none; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 52px;
    color: white;
    background: #111827;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 25% 25%, rgba(249,30,101,.55), transparent 28%),
        radial-gradient(circle at 72% 28%, rgba(99,5,244,.65), transparent 35%),
        radial-gradient(circle at 62% 78%, rgba(5,88,234,.38), transparent 35%);
    filter: blur(18px);
}

.brand, .brand-content, .brand-footer { position: relative; z-index: 1; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.brand strong {
    display: block;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 19px;
}

.brand span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,.62);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.brand-content { max-width: 580px; }

.eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.brand-content h1 {
    margin-top: 22px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.brand-content p {
    max-width: 540px;
    margin-top: 22px;
    color: rgba(255,255,255,.68);
    font-size: 16px;
    line-height: 1.75;
}

.brand-footer {
    color: rgba(255,255,255,.48);
    font-size: 12px;
}

.auth-panel {
    display: grid;
    place-items: center;
    padding: 42px;
}

.auth-card {
    width: min(460px, 100%);
    padding: 38px;
    border: 1px solid rgba(99,5,244,.12);
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 24px 70px rgba(55, 20, 100, .14);
    backdrop-filter: blur(14px);
}

.auth-card h2 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 30px;
    letter-spacing: -1px;
}

.auth-card .intro {
    margin-top: 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.form-group { margin-top: 20px; }

label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
}

input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid rgba(17,24,39,.13);
    border-radius: 10px;
    outline: none;
    background: white;
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(99,5,244,.08);
}

button {
    width: 100%;
    height: 52px;
    margin-top: 24px;
    border: 0;
    border-radius: 10px;
    color: white;
    background: var(--gradient);
    box-shadow: 0 14px 30px rgba(99,5,244,.26);
    cursor: pointer;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
}

button:hover { transform: translateY(-1px); }

.alert {
    margin-top: 18px;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.55;
}

.alert-error {
    color: #991B1B;
    border: 1px solid rgba(220,38,38,.18);
    background: #FEF2F2;
}

.alert-success {
    color: #166534;
    border: 1px solid rgba(22,163,74,.18);
    background: #F0FDF4;
}

.auth-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.auth-note a { color: var(--purple); font-weight: 700; }

.dashboard {
    min-height: 100vh;
    background: #F7F8FC;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 30px;
    border-bottom: 1px solid var(--line);
    background: white;
}

.dashboard-header .brand strong { color: var(--ink); }
.dashboard-header .brand span { color: var(--muted); }

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
}

.logout {
    padding: 10px 14px;
    border: 1px solid rgba(99,5,244,.16);
    border-radius: 9px;
    color: var(--purple);
    background: rgba(99,5,244,.06);
    font-weight: 700;
}

.dashboard-main {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0;
}

.dashboard-main h1 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 38px;
    letter-spacing: -1.2px;
}

.dashboard-main > p {
    margin-top: 10px;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.dashboard-card {
    min-height: 180px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: 0 12px 34px rgba(17,24,39,.06);
}

.dashboard-card span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--purple);
    background: rgba(99,5,244,.07);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.dashboard-card h3 {
    margin-top: 20px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 19px;
}

.dashboard-card p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { min-height: 430px; padding: 34px 26px; }
    .auth-panel { padding: 28px 16px; }
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .auth-card { padding: 28px 22px; }
    .dashboard-header { padding: 15px 18px; }
    .dashboard-actions span { display: none; }
    .dashboard-main { width: min(100% - 28px, 1180px); padding-top: 40px; }
}
