* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --brand: #2f80ed;
    --brand-dark: #1f6dd6;
    --text: #0f172a;
    --muted: #475569;
    --surface: rgba(255, 255, 255, 0.92);
    --border: rgba(148, 163, 184, 0.3);
    --focus: rgba(47, 128, 237, 0.22);
    --danger: #b42340;
    --success: #0f8a61;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    min-height: 100vh;
    color: var(--text);
    background:
        linear-gradient(rgba(8, 18, 34, 0.72), rgba(8, 18, 34, 0.72)),
        radial-gradient(circle at top left, rgba(47, 128, 237, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(15, 138, 97, 0.16), transparent 24%),
        url('./assets/backend-background.jpg') center / cover no-repeat fixed;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 520px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
}

.brand {
    text-align: center;
    margin-bottom: 18px;
}

.brand a {
    text-decoration: none;
    color: var(--brand);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand span {
    color: #0f172a;
    font-weight: 600;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.12);
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-title-section {
    text-align: center;
    margin-bottom: 18px;
}

.auth-title-section h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-title-section p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-note {
    margin: 12px 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.auth-note strong {
    color: var(--text);
}

.auth-form {
    margin-top: 10px;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-size: 14px;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--focus);
}

.form-control::placeholder {
    color: #64748b;
}

.password-wrap {
    position: relative;
}

.password-wrap .form-control {
    padding-right: 48px;
}

.eye-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.eye-toggle:hover {
    background: rgba(15, 23, 42, 0.05);
}

.eye-toggle svg {
    width: 18px;
    height: 18px;
}

.btn-primary {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(1.02);
}

.btn-primary:active {
    transform: translateY(1px);
}

.auth-feedback {
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.auth-feedback.success {
    color: var(--success);
}

.auth-feedback.error {
    color: var(--danger);
}

.auth-switch {
    margin-top: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

.auth-switch a {
    color: var(--brand-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 560px) {
    .auth-shell {
        padding: 16px;
    }

    .auth-card {
        padding: 22px 16px;
        border-radius: 20px;
    }

    .brand a {
        font-size: 26px;
    }

    .auth-title-section h1 {
        font-size: 24px;
    }
}