* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(135deg, rgba(139, 30, 30, 0.92), rgba(31, 41, 55, 0.96)),
        url("../images/legal-bg.jpg");
    background-size: cover;
    background-position: center;
    color: #111827;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;
    background: #ffffff;
    border-radius: 22px;
    padding: 34px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.brand-box {
    text-align: center;
    margin-bottom: 26px;
}

.gavel-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 14px;
    border-radius: 22px;
    background: #8b1e1e;
    color: #ffffff;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-box h1 {
    margin: 0;
    font-size: 25px;
    line-height: 1.35;
    color: #111827;
}

.brand-box p {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
    color: #374151;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 13px;
    padding: 12px 14px;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

.form-group input:focus {
    border-color: #8b1e1e;
    box-shadow: 0 0 0 4px rgba(139, 30, 30, 0.12);
}

.login-btn {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 14px;
    background: #8b1e1e;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s;
}

.login-btn:hover {
    background: #701818;
    transform: translateY(-1px);
}

.demo-info {
    margin-top: 20px;
    padding: 13px;
    border-radius: 13px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 480px) {
    .login-card {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .brand-box h1 {
        font-size: 21px;
    }
}

.language-switch {
    position: fixed;
    top: 22px;
    right: 24px;
    background: #ffffff;
    padding: 6px;
    border-radius: 999px;
    display: flex;
    gap: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    z-index: 10;
}

.language-switch a {
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.language-switch a.active {
    background: #8b1e1e;
    color: #ffffff;
}