:root {
    --primary: #9b1028;
    --primary-dark: #7d0b1f;
    --accent: #f28c28;
    --green: #2f8f46;
    --text: #101828;
    --muted: #667085;
    --border: #e4e7ec;
    --soft: #f7f8fb;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(242, 140, 40, .18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(47, 143, 70, .18), transparent 30%),
        linear-gradient(135deg, #f5f7fb 0%, #eef2f7 100%);
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
}

.login-card {
    width: min(1120px, 100%);
    min-height: 690px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 34px;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(18px);
}

.login-visual {
    position: relative;
    align-items: flex-end;
    min-height: 690px;
    padding: 48px;
    color: #fff;
    background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=85');
    background-position: center;
    background-size: cover;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 24, 40, .2), rgba(16, 24, 40, .84)),
        linear-gradient(135deg, rgba(155, 16, 40, .76), rgba(47, 143, 70, .42));
}

.visual-content {
    position: relative;
    z-index: 2;
    max-width: 460px;
}

.visual-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.06em;
}

.visual-content p {
    margin-top: 18px;
    color: rgba(255, 255, 255, .86);
    font-size: 1.04rem;
}

.visual-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.visual-stats div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 20px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(8px);
}

.visual-stats strong,
.visual-stats span {
    display: block;
}

.visual-stats strong {
    font-size: 1.35rem;
}

.visual-stats span {
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
}

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 34px;
}

.login-form-box {
    width: min(430px, 100%);
}

.brand-logo {
    max-width: 230px;
    height: auto;
}

.brand-subtitle {
    color: var(--green);
    font-weight: 700;
    font-size: .92rem;
}

.login-title {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.login-text,
.captcha-note {
    color: var(--muted);
}

.form-label {
    color: #344054;
    font-size: .9rem;
    font-weight: 700;
}

.modern-input {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 24, 40, .06);
}

.modern-input .input-group-text,
.modern-input .form-control {
    border: 0;
    background: transparent;
}

.modern-input .input-group-text {
    color: var(--primary);
}

.modern-input .form-control {
    min-height: 58px;
    font-size: .98rem;
}

.modern-input .form-control:focus {
    box-shadow: none;
}

.modern-input:focus-within {
    border-color: rgba(155, 16, 40, .55);
    box-shadow: 0 0 0 .25rem rgba(155, 16, 40, .10), 0 12px 30px rgba(16, 24, 40, .08);
}

.btn-show-password {
    cursor: pointer;
}

.login-button {
    min-height: 58px;
    border: 0;
    border-radius: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 16px 30px rgba(155, 16, 40, .26);
}

.login-button:hover,
.login-button:focus {
    background: linear-gradient(135deg, var(--primary-dark), #650719);
}

.captcha-note {
    font-size: .78rem;
    text-align: center;
}

@media (max-width: 991.98px) {
    .login-card {
        min-height: auto;
        border-radius: 26px;
    }

    .login-form-side {
        min-height: 100vh;
        padding: 36px 22px;
    }
}
