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

:root {
    --bg: #100d18;
    --surface: #191522;
    --surface-light: #211b2e;
    --border: rgba(255,255,255,.075);
    --text: #f5f0ff;
    --muted: #a69bb8;
    --primary: #a78bfa;
    --primary-dark: #8058d8;
    --success: #55d6a0;
    --danger: #ff758f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

button,
input {
    font: inherit;
}

.background-glow {
    position: fixed;
    width: 650px;
    height: 650px;
    top: -320px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(139, 92, 246, .13);
    filter: blur(110px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
}

.brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 17px;
    border-radius: 20px;
    background: linear-gradient(145deg, #a78bfa, #6842b5);
    color: white;
    font-size: 30px;
    box-shadow: 0 10px 35px rgba(139, 92, 246, .28);
}

.brand-icon.small {
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 11px;
    font-size: 19px;
}

.brand h1 {
    margin: 0;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand h1 span,
.topbar-brand strong {
    color: var(--primary);
}

.brand > p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2.4px;
    font-weight: 600;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 35px;
    background: rgba(25, 21, 34, .94);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
}

.card-heading {
    margin-bottom: 27px;
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.card-heading h2 {
    margin: 0 0 9px;
    font-size: 25px;
    letter-spacing: -.7px;
}

.card-heading p,
.welcome-section p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

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

.form-group label {
    display: block;
    margin-bottom: 9px;
    font-size: 12px;
    font-weight: 600;
    color: #ded5eb;
}

.form-group input {
    width: 100%;
    height: 49px;
    padding: 0 15px;
    color: var(--text);
    background: #211b2e;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: .2s ease;
}

.form-group input::placeholder {
    color: #776d86;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(167, 139, 250, .1);
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 49px;
    padding: 12px 18px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    transition: .2s ease;
}

.button-primary {
    color: white;
    background: linear-gradient(110deg, #a78bfa, #8058d8);
    box-shadow: 0 7px 25px rgba(139, 92, 246, .2);
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, .3);
}

.button-outline {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
}

.button-outline:hover {
    background: var(--surface-light);
}

.button-small {
    width: auto;
    min-height: 37px;
    padding: 8px 13px;
    font-size: 11px;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 25px;
    color: var(--muted);
    font-size: 10px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(85, 214, 160, .4);
}

.alert {
    padding: 12px 14px;
    margin-bottom: 20px;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.6;
}

.alert-error {
    color: #ffb4c1;
    background: rgba(255, 117, 143, .1);
    border: 1px solid rgba(255, 117, 143, .2);
}

.page-footer {
    margin-top: 28px;
    color: #716780;
    font-size: 10px;
    text-align: center;
}

/* Admin dashboard */

.dashboard-body {
    position: relative;
}

.topbar {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 75px;
    padding: 0 5%;
    border-bottom: 1px solid var(--border);
    background: rgba(25, 21, 34, .85);
}

.topbar-brand,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
}

.admin-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
    font-size: 10px;
}

.dashboard-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 25px;
}

.welcome-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(115deg, #211b30, #191522);
}

.welcome-section h1 {
    margin: 0 0 10px;
    font-size: clamp(23px, 4vw, 32px);
    letter-spacing: -1px;
}

.welcome-icon {
    display: grid;
    place-items: center;
    width: 75px;
    height: 75px;
    border-radius: 22px;
    background: rgba(167, 139, 250, .12);
    color: var(--primary);
    font-size: 35px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card {
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
    transition: .2s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(167, 139, 250, .3);
}

.dashboard-card-icon {
    margin-bottom: 23px;
    font-size: 26px;
}

.card-label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.dashboard-card h2 {
    margin: 0 0 9px;
    font-size: 19px;
}

.dashboard-card p {
    min-height: 42px;
    margin: 0 0 19px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.coming-soon {
    display: inline-block;
    padding: 7px 10px;
    color: #bca8f4;
    background: rgba(167, 139, 250, .1);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 600;
}

.system-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 25px;
    padding: 20px;
    border: 1px solid rgba(85, 214, 160, .15);
    border-radius: 13px;
    background: rgba(85, 214, 160, .045);
}

.notice-icon {
    color: var(--success);
    font-size: 22px;
}

.system-notice strong {
    font-size: 12px;
}

.system-notice p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
}

.dashboard-footer {
    padding-top: 35px;
    color: #716780;
    font-size: 10px;
    text-align: center;
}

@media (max-width: 650px) {
    .auth-card {
        padding: 25px 21px;
    }

    .topbar {
        padding: 0 17px;
    }

    .dashboard-container {
        padding: 30px 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .welcome-section {
        padding: 24px;
    }

    .welcome-icon {
        display: none;
    }

    .admin-badge {
        display: none;
    }
}