:root {
    color-scheme: dark;
    background: #090708;
    color: #f4f4f4;
    font-family: 'Inter', sans-serif;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(255,255,255,0.06), transparent 35%),
                linear-gradient(180deg, rgba(10,9,8,0.82), rgba(18,15,17,0.92)),
                url("../image/bg.jpg") center/cover no-repeat;
    background-attachment: fixed;
}
.login-wrapper {
    width: min(420px, calc(100% - 32px));
    padding: 24px;
}
.login-card {
    background: rgba(20,18,20,0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.38);
}
.login-brand {
    font-size: 0.9rem;
    letter-spacing: 0.32em;
    color: #9fa8da;
    margin-bottom: 18px;
    text-transform: uppercase;
}
.login-headline-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.login-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: 0.2em;
    line-height: 1;
    color: #f5f2ed;
    margin: 0;
    text-transform: uppercase;
}
.login-title .hl {
    color: #ff6b35;
}
.login-heading {
    margin: 0;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    font-weight: 700;
}
grouped h1 {
    margin: 0 0 12px;
}
h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 2.5vw, 2.5rem);
}
p {
    margin: 0 0 24px;
    color: #d0d0d4;
    line-height: 1.6;
}
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}
input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    color: #f4f4f4;
    margin-bottom: 18px;
    font-size: 1rem;
}
input:focus {
    outline: none;
    border-color: #7f8cfa;
    box-shadow: 0 0 0 4px rgba(127,140,250,0.12);
}
button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b35, #ff8c5a);
    color: #0a0908;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 30px rgba(255,107,53,0.18);
}
button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ff8c5a, #ff9c6e);
}
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}
.message {
    min-height: 24px;
    margin-top: 14px;
    font-size: 0.95rem;
}
.message.error {
    color: #ff6b6b;
}
.message.success {
    color: #6ef37f;
}
.home-link {
    display: inline-block;
    margin-top: 24px;
    color: #c7c7ff;
    text-decoration: none;
    font-size: 12px;
}
.form-footer .home-link {
    margin-top: 0;
    font-size: 0.95rem;
}
.home-link:hover {
    text-decoration: underline;
}
.form-footer {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.95rem;
    color: #d0d0d4;
}
.login-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(9, 7, 8, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.login-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 36px;
    letter-spacing: 6px;
    color: #f4f4f4;
}
.loader-logo span {
    color: #ff6b35;
}
.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 1px;
    overflow: hidden;
    position: relative;
}
.loader-bar::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    height: 100%;
    width: 40%;
    background: #ff6b35;
    border-radius: 1px;
    animation: loaderSlide 1s ease-in-out infinite;
}
@keyframes loaderSlide {
    0% { left: -40%; }
    100% { left: 100%; }
}
@media (max-width: 420px) {
    .login-card {
        padding: 24px;
    }
}
