body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, #e7eefc 0%, #f1f5f9 45%, #e2e8f0 100%);
    padding: 1.2rem;
}

.login-shell {
    width: min(1120px, 100%);
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #dbe3ef;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    display: grid;
    grid-template-columns: minmax(360px, 460px) 1fr;
    overflow: hidden;
}

.login-card {
    width: 100%;
    padding: 2.4rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-subtitle {
    color: #64748b;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.login-error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 1rem;
    font-size: 0.84rem;
    font-weight: 600;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-size: 0.92rem;
    background: #f8fafc;
}

.input-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    background: #ffffff;
}

.login-helper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.remember-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    color: #64748b;
    cursor: pointer;
}

.forgot-link {
    font-size: 0.84rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: #0f172a;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.96rem;
}

.login-btn:hover {
    background: #1e293b;
}

.login-brand {
    margin-top: 1.4rem;
    color: #94a3b8;
    font-size: 0.8rem;
    text-align: center;
}

.login-visual {
    position: relative;
    min-height: 680px;
    background: #0f172a;
}

.login-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.45) 100%);
    pointer-events: none;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 300px;
        order: -1;
    }
}

@media (max-width: 560px) {
    body {
        padding: 0.8rem;
    }

    .login-card {
        padding: 1.4rem 1.1rem 1.6rem;
    }

    .login-title {
        font-size: 1.65rem;
    }
}
