:root {
    --auth-primary: #c62828;
    --auth-primary-dark: #991b1b;
    --auth-text: #172033;
    --auth-muted: #697386;
    --auth-border: #dde2ea;
}

* {
    box-sizing: border-box;
}

body {
    background: #f4f6f9;
    color: var(--auth-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(420px, 1.15fr);
    min-height: 100vh;
}

.auth-brand {
    align-items: center;
    background: linear-gradient(145deg, #ffffff 0%, #f1f2f4 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 7vw, 7rem);
}

.auth-brand img {
    max-width: 460px;
    width: 100%;
}

.auth-brand p {
    color: var(--auth-muted);
    font-size: 1.05rem;
    margin-top: 1.5rem;
}

.auth-brand strong {
    color: var(--auth-primary);
}

.auth-content {
    align-items: center;
    background: radial-gradient(circle at 85% 15%, rgba(198, 40, 40, 0.13), transparent 36%), #f8f9fb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 1.25rem;
    box-shadow: 0 24px 65px rgba(23, 32, 51, 0.14);
    max-width: 510px;
    padding: clamp(1.5rem, 4vw, 2.6rem);
    width: 100%;
}

.auth-back {
    color: var(--auth-muted);
    display: inline-flex;
    font-size: 0.88rem;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    text-decoration: none;
}

.auth-back:hover {
    color: var(--auth-primary);
}

.auth-svg-icon {
    display: block;
    flex: 0 0 auto;
}

.auth-icon {
    align-items: center;
    background: rgba(198, 40, 40, 0.1);
    border-radius: 0.9rem;
    color: var(--auth-primary);
    display: inline-flex;
    font-size: 1.5rem;
    height: 3.2rem;
    justify-content: center;
    margin-bottom: 1.1rem;
    width: 3.2rem;
}

.auth-card h1 {
    font-size: clamp(1.6rem, 4vw, 2.15rem);
    font-weight: 750;
    letter-spacing: -0.035em;
    margin-bottom: 0.55rem;
}

.auth-description {
    color: var(--auth-muted);
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 650;
}

.form-control,
.input-group-text {
    border-color: var(--auth-border);
    min-height: 3rem;
}

.form-control:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 0.22rem rgba(198, 40, 40, 0.14);
}

.auth-submit {
    align-items: center;
    background: var(--auth-primary);
    color: #ffffff;
    display: inline-flex;
    font-weight: 700;
    gap: 0.5rem;
    justify-content: center;
    min-height: 3rem;
}

.auth-submit:hover {
    background: var(--auth-primary-dark);
    color: #ffffff;
}

.auth-footer {
    color: var(--auth-muted);
    font-size: 0.8rem;
    margin: 1.2rem 0 0;
}

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

    .auth-brand {
        padding: 1.5rem;
    }

    .auth-brand img {
        max-width: 240px;
    }

    .auth-brand p {
        display: none;
    }

    .auth-content {
        justify-content: flex-start;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-brand {
        padding: 1.25rem 1rem 0.8rem;
    }

    .auth-brand img {
        max-width: 190px;
    }

    .auth-content {
        padding: 0.8rem;
    }

    .auth-card {
        border-radius: 1rem;
        padding: 1.35rem;
    }

    .auth-back {
        margin-bottom: 1.25rem;
    }
}
