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

:root {
    --rojo: #d81822;
    --rojo-claro: #e1868a;
    --gris-oscuro: #2b2a2a;
    --gris: #6b7280;
    --blanco: #ffffff;
}

body {
    font-family: "Manrope", sans-serif;
    background: radial-gradient(circle at top left, #f8fafc 0%, #e5e7eb 35%, #e2e2e2 100%);
    color: var(--gris-oscuro);
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-image:
        linear-gradient(135deg, rgba(216, 24, 34, 0.07), rgba(255, 255, 255, 0)),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 60px);
}

.login-shell {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 22px 40px rgba(17, 24, 39, 0.15);
    backdrop-filter: blur(12px);
    animation: fadeUp 0.5s ease both;
}

.login-brand {
    background: linear-gradient(160deg, #111827, #2f2f2f);
    color: var(--blanco);
    border-radius: 18px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.login-brand::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(225, 134, 138, 0.35), transparent 70%);
}

.brand-logo {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.brand-logo img {
    width: 90px;
    height: auto;
}

.login-brand h1 {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
    font-weight: 600;
}

.login-brand p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brand-tags span {
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.login-card {
    background: var(--blanco);
    border-radius: 18px;
    padding: 28px;
    box-shadow: inset 0 0 0 1px rgba(17, 24, 39, 0.05);
}

.login-card h2 {
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.login-subtitle {
    color: var(--gris);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.login-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #374151;
}

.field input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 0.95rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus {
    outline: none;
    border-color: var(--rojo);
    box-shadow: 0 0 0 3px rgba(216, 24, 34, 0.15);
    background: var(--blanco);
}

.login-form button {
    margin-top: 6px;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--rojo), var(--rojo-claro));
    color: var(--blanco);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(216, 24, 34, 0.25);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .login-brand {
        align-items: center;
        text-align: center;
    }
}
