:root {
    --bg-top: #270001;
    --bg-mid: #7b0000;
    --bg-bottom: #f70000;
    --panel-glow: rgba(255, 38, 38, 0.22);
    --field-bg: #f5f5f5;
    --field-text: #101010;
    --field-shadow: rgba(0, 0, 0, 0.28);
    --button-dark: #030303;
    --button-dark-hover: #141414;
    --button-red: #cb0000;
    --button-red-hover: #df1010;
    --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.28);
    --shadow-pill: 0 10px 18px rgba(0, 0, 0, 0.32);
    --focus-ring: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 0 0 7px rgba(255, 30, 30, 0.22);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: "Rajdhani", sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at top center, rgba(255, 80, 80, 0.14), transparent 24%),
        linear-gradient(180deg, var(--bg-top) 0%, #3e0000 24%, var(--bg-mid) 62%, var(--bg-bottom) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 16%),
        radial-gradient(circle at center 22%, var(--panel-glow), transparent 24%);
    pointer-events: none;
}

.login-page {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.login-panel {
    width: min(100%, 470px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.brand-lockup {
    width: 100%;
    display: flex;
    justify-content: center;
}

.brand-logo {
    width: min(100%, 270px);
    height: auto;
    filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.34));
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.field-shell {
    position: relative;
    width: min(100%, 396px);
}

.field-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #050505;
}

.field-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.field-shell input {
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(180deg, #ffffff 0%, var(--field-bg) 100%);
    color: var(--field-text);
    padding: 0 18px 0 54px;
    font: 600 1.3rem/1 "Rajdhani", sans-serif;
    box-shadow: var(--shadow-pill);
    outline: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.field-shell input:focus {
    transform: translateY(-1px);
    box-shadow: var(--shadow-pill), var(--focus-ring);
}

.primary-action,
.secondary-action {
    width: min(100%, 396px);
    min-height: 44px;
    border-radius: 15px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font: 700 1.15rem/1 "Rajdhani", sans-serif;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.primary-action {
    background: var(--button-dark);
    color: #fff;
    box-shadow: var(--shadow-soft);
}

.primary-action:hover,
.primary-action:focus-visible {
    background: var(--button-dark-hover);
    transform: translateY(-2px);
}

.secondary-action {
    width: min(100%, 296px);
    background: var(--button-red);
    color: #fff;
    box-shadow: 0 10px 18px rgba(83, 0, 0, 0.38);
}

.secondary-action:hover,
.secondary-action:focus-visible {
    background: var(--button-red-hover);
    transform: translateY(-2px);
}

.status-message {
    margin: -8px 0 0;
    width: min(100%, 396px);
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-pill);
    text-align: center;
    font: 600 1rem/1.35 "Rajdhani", sans-serif;
}

.status-message-error {
    background: rgba(56, 0, 0, 0.62);
    border-color: rgba(255, 133, 133, 0.22);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .login-page {
        padding: 24px 16px;
    }

    .brand-logo {
        width: min(100%, 240px);
    }

    .login-form {
        gap: 22px;
    }

    .field-shell input,
    .primary-action,
    .secondary-action {
        min-height: 50px;
        font-size: 1.2rem;
    }
}
