:root {
    --bg: #0f172a;
    --panel: #111827;
    --panel-2: #0b1220;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #22c55e;
    --accent-2: #16a34a;
    --danger: #ef4444;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35)
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
    color: var(--text);
    background: radial-gradient(1200px 600px at 10% -20%, #1f2937 0%, transparent 60%),
        radial-gradient(800px 500px at 110% 10%, #0b5 0%, transparent 40%),
        linear-gradient(180deg, var(--bg), var(--panel-2));
}

.auth {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 24px
}

.login-box {
    width: 100%;
    max-width: 380px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 28px 24px;
    animation: login .6s ease;
}

@keyframes login {
    from {
        opacity: 0;
        transform: translateY(8px) scale(.98)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

h1 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    text-align: center
}

form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px
}

label {
    font-size: 14px;
    color: var(--muted)
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    background: #0b1220;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    outline: none;
    padding: 12px 12px;
    transition: border-color .2s, box-shadow .2s;
}

.login-box input::placeholder {
    color: #6b7280
}

.login-box input:focus {
    border-color: rgba(34, 197, 94, .6);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .15)
}

.password-field {
    position: relative;
    display: flex;
    align-items: center
}

.password-field .toggle-password {
    position: absolute;
    right: 6px;
    top: 6px;
    height: 32px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: #0f172a;
    color: #cbd5e1;
}

.password-field .toggle-password:hover {
    background: #111827
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px
}

.btn {
    appearance: none;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer
}

.btn.primary {
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: #04130a;
    font-weight: 600
}

.btn.primary:hover {
    filter: brightness(.95)
}

.form-message {
    min-height: 20px;
    margin-top: 4px;
    font-size: 14px;
    color: var(--danger);
    text-align: center
}

.form-message.success {
    color: var(--accent)
}