@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --bg: #07070a;
    --card: #101016;
    --text: #f7f7fb;
    --muted: #8d8d9d;
    --accent: #7c5cff;
    --accent-light: #9d87ff;
    --border: rgba(255,255,255,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;

    font-family: "Inter", sans-serif;

    color: var(--text);

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(124,92,255,.15),
            transparent 35%
        ),
        var(--bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;

    padding: 40px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo {
    margin-bottom: 35px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 26px;
    font-weight: 700;

    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.login-card {
    width: min(440px, 100%);

    padding: 42px;

    position: relative;

    border: 1px solid var(--border);

    border-radius: 18px;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(124,92,255,.10),
            transparent 35%
        ),
        rgba(16,16,22,.94);

    box-shadow:
        0 35px 100px rgba(0,0,0,.45);
}

.lock-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(124,92,255,.25);

    border-radius: 12px;

    background: rgba(124,92,255,.10);

    color: var(--accent-light);

    font-family: "Space Grotesk", sans-serif;

    font-weight: 700;
}

.admin-label {
    color: var(--accent-light);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 2px;
}

h1 {
    margin-top: 8px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 36px;

    letter-spacing: -1.5px;
}

.subtitle {
    margin-top: 8px;

    color: var(--muted);

    font-size: 13px;
}

form {
    margin-top: 35px;

    display: flex;
    flex-direction: column;

    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

label {
    color: #aaaab7;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1px;
}

input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    outline: none;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: #09090d;

    color: white;

    transition: .2s;
}

input:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(124,92,255,.08);
}

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 70px;
}

.show-password {
    position: absolute;

    top: 50%;
    right: 13px;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: var(--accent-light);

    font-size: 9px;
    font-weight: 700;

    cursor: pointer;
}

.login-button {
    height: 49px;

    border: none;

    border-radius: 9px;

    background: var(--accent);

    color: white;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: .25s;
}

.login-button:hover {
    background: var(--accent-light);

    transform: translateY(-2px);

    box-shadow:
        0 15px 35px rgba(124,92,255,.2);
}

.error-message {
    min-height: 16px;

    color: #ff7b87;

    font-size: 10px;
}

.security-note {
    margin-top: 27px;

    padding-top: 20px;

    text-align: center;

    border-top: 1px solid var(--border);

    color: #626270;

    font-size: 9px;
}

.back-link {
    margin-top: 25px;

    color: var(--muted);

    font-size: 11px;
}

.back-link:hover {
    color: white;
}

@media (max-width: 500px) {
    .login-card {
        padding: 30px 22px;
    }

    h1 {
        font-size: 31px;
    }
}