* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 950px;
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

.brand-box {
    background: linear-gradient(135deg, #1d4ed8, #0f172a);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-box h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.brand-box p {
    font-size: 18px;
    opacity: 0.9;
}

.login-form {
    padding: 50px;
}

.login-form h2 {
    margin-bottom: 25px;
    color: #0f172a;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: #334155;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    font-size: 15px;
}

.form-group input:focus {
    border-color: #1d4ed8;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.remember-me {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 14px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.forgot-link {
    color: #1d4ed8;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    background: #1d4ed8;
    color: white;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.btn-login:hover {
    background: #1e40af;
}

.login-commercial-links {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.plans-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    color: #1d4ed8;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.plans-link:hover {
    color: #1e40af;
    border-color: #bfdbfe;
    background: #eff6ff;
    transform: translateY(-1px);
}

.login-text-link {
    display: inline-flex;
    justify-content: center;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.login-text-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.35;
}

.system-message-code {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.2;
    opacity: 0.75;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.info {
    background: #dbeafe;
    color: #1e3a8a;
}

.alert.success {
    background: #dcfce7;
    color: #166534;
}

.back-link {
    display: inline-block;
    margin-top: 18px;
    color: #475569;
    font-size: 14px;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .brand-box,
    .login-form {
        padding: 30px 24px;
    }

    .brand-box h1 {
        font-size: 30px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
