body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #050505;
    color: #fff;
}

* {
    box-sizing: border-box;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: url('/assets/img/background.jpg') center center / cover no-repeat fixed;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.56));
}

.login-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 1440px);
    min-height: min(860px, calc(100vh - 40px));
    display: grid;
    grid-template-columns: 1.12fr 0.96fr;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(10, 10, 10, 0.82);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.68);
}

.login-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: clamp(28px, 3.5vw, 48px);
    background: url('/assets/img/background.jpg') center center / cover no-repeat;
    border-right: 1px solid rgba(255, 255, 255, 0.10);
}

.login-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.18)),
        radial-gradient(circle at 18% 22%, rgba(31, 143, 66, 0.08), transparent 26%),
        radial-gradient(circle at 82% 26%, rgba(178, 31, 36, 0.08), transparent 28%);
}

.login-brand {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.30);
    flex: 0 0 auto;
}

.brand-copy {
    min-width: 0;
}

.brand-kicker {
    display: block;
    font-size: 0.70rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 8px;
}

.brand-copy h1 {
    margin: 0;
    font-size: clamp(2.0rem, 3.2vw, 3.8rem);
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 14ch;
}

.brand-copy p {
    margin: 12px 0 0;
    max-width: 42ch;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: clamp(32px, 4vw, 48px);
    background: rgba(12, 12, 12, 0.96);
}

.card-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-kicker {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
}

.card-top h2 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.1;
}

.card-top p {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.5;
    font-size: 0.95rem;
    max-width: 440px;
}

.family-note {
    border-left: 2px solid rgba(255, 255, 255, 0.14);
    padding: 4px 0 4px 14px;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
    font-size: 0.93rem;
}

.family-disclaimer {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-left: 3px solid rgba(178, 31, 36, 0.85);
    border-radius: 14px;
    padding: 14px 16px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.55;
    font-size: 0.90rem;
}

.family-disclaimer strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: 0.02em;
    font-size: 0.92rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field span {
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.82);
}

.login-card input,
.login-card button {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    outline: none;
    transition: 0.16s ease;
}

.login-card input {
    background: rgba(255, 255, 255, 0.035);
    color: #fff;
    font-size: 0.92rem;
}

.login-card input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.login-card input:focus {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.055);
}

.login-button {
    margin-top: 2px;
    background: linear-gradient(180deg, #2b2b2b, #131313);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.login-button:hover {
    background: linear-gradient(180deg, #333333, #171717);
    transform: translateY(-1px);
}

.login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.70rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.36);
}

.login-footer span::after {
    content: '•';
    margin-left: 10px;
    opacity: 0.5;
}

.login-footer span:last-child::after {
    content: '';
    margin: 0;
}

.alert {
    margin-top: 0;
    background: rgba(139, 31, 31, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 0.90rem;
}

@media (max-width: 1120px) {
    .login-panel {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-visual {
        min-height: 300px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }
}

@media (max-width: 640px) {
    .login-page {
        padding: 10px;
    }

    .login-brand {
        align-items: flex-start;
        gap: 12px;
    }

    .brand-logo {
        width: 66px;
        height: 66px;
    }

    .card-top h2 {
        font-size: 1.3rem;
    }
}