/* Login odontopay — marca navy #112639 */
:root {
    --op-navy: #112639;
    --op-navy-deep: #0a1824;
    --op-navy-mid: #1a3a52;
    --op-steel: #3d5a73;
    --op-mist: #e8eef3;
    --op-ink: #1e293b;
    --op-muted: #64748b;
    --op-line: rgba(17, 38, 57, 0.12);
    --op-font: "Manrope", "Segoe UI", sans-serif;
}

body.op-login-page {
    margin: 0;
    min-height: 100vh;
    font-family: var(--op-font);
    background: var(--op-navy-deep);
    color: var(--op-ink);
    overflow-x: hidden;
}

body.op-login-page .op-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
}

body.op-login-page .op-login-main {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 0;
    padding: 0;
}

body.op-login-page > .container {
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

body.op-login-page > .container > main {
    padding: 0 !important;
}

.op-login {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    width: 100%;
    min-height: calc(100vh - 52px);
    animation: op-login-fade 0.7s ease both;
}

@keyframes op-login-fade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}

/* Painel da marca */
.op-login-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(2rem, 5vw, 3.5rem);
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(61, 90, 115, 0.45) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 85%, rgba(26, 58, 82, 0.55) 0%, transparent 50%),
        linear-gradient(155deg, var(--op-navy-mid) 0%, var(--op-navy) 42%, var(--op-navy-deep) 100%);
    color: #fff;
    overflow: hidden;
}

.op-login-brand::before {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(225deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: rotate(-8deg);
    animation: op-grid-drift 28s linear infinite;
    pointer-events: none;
}

@keyframes op-grid-drift {
    from { transform: rotate(-8deg) translate3d(0, 0, 0); }
    to { transform: rotate(-8deg) translate3d(-28px, 28px, 0); }
}

.op-login-brand::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -60px;
    bottom: -40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    pointer-events: none;
    animation: op-diamond 6s ease-in-out infinite alternate;
}

@keyframes op-diamond {
    from { opacity: 0.35; transform: rotate(45deg) scale(1); }
    to { opacity: 0.7; transform: rotate(45deg) scale(1.06); }
}

.op-login-brand-top,
.op-login-brand-copy,
.op-login-brand-bottom {
    position: relative;
    z-index: 1;
}

.op-login-brand-logo {
    display: block;
    height: clamp(22px, 2.8vw, 28px);
    width: auto;
    max-width: min(160px, 48%);
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.op-login-brand-copy {
    max-width: 22rem;
    margin-top: auto;
    margin-bottom: auto;
    padding: 2rem 0;
}

.op-login-brand-copy h1 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.op-login-brand-copy h1 span {
    font-weight: 300;
}

.op-login-brand-copy p {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    max-width: 18rem;
}

.op-login-brand-bottom {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* Formulário */
.op-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.75rem, 4vw, 3rem);
    background: #f7f9fb;
}

.op-login-card {
    width: 100%;
    max-width: 400px;
    animation: op-panel-in 0.75s 0.12s ease both;
}

@keyframes op-panel-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
}

.op-login-mobile-logo {
    display: none;
    margin: 0 auto 1.5rem;
    height: 28px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.op-login-card-title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--op-navy);
}

.op-login-card-sub {
    margin: 0 0 1.75rem;
    color: var(--op-muted);
    font-size: 0.95rem;
}

.op-login-field {
    margin-bottom: 1.1rem;
}

.op-login-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--op-navy);
}

.op-login-field .form-control {
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--op-line);
    background: #fff;
    padding: 0.65rem 0.95rem;
    font-size: 0.95rem;
    color: var(--op-ink);
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.op-login-field .form-control::placeholder {
    color: #94a3b8;
}

.op-login-field .form-control:focus {
    border-color: var(--op-navy-mid);
    box-shadow: 0 0 0 3px rgba(17, 38, 57, 0.12);
    outline: none;
}

.op-login-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}

.op-login-meta .form-check {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    min-height: 0;
    padding: 0;
}

.op-login-meta .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    border-color: #94a3b8;
    cursor: pointer;
}

.op-login-meta .form-check-input:checked {
    background-color: var(--op-navy);
    border-color: var(--op-navy);
}

.op-login-meta .form-check-label {
    font-size: 0.88rem;
    color: var(--op-muted);
    cursor: pointer;
}

.op-login-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: var(--op-navy);
    color: #fff !important;
    font-family: var(--op-font);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 10px 24px rgba(17, 38, 57, 0.22);
}

.op-login-submit:hover {
    background: var(--op-navy-mid);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(17, 38, 57, 0.28);
}

.op-login-submit:active {
    transform: translateY(0);
}

.op-login-errors {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.88rem;
}

.op-login-errors:empty,
.op-login-errors:not(:has(*)) {
    display: none;
}

.op-login-footer-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.88rem;
}

.op-login-footer-links a {
    color: var(--op-steel) !important;
    text-decoration: none;
    font-weight: 500;
}

.op-login-footer-links a:hover {
    color: var(--op-navy) !important;
    text-decoration: underline;
}

body.op-login-page > footer {
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1rem !important;
}

body.op-login-page > footer a {
    color: rgba(255, 255, 255, 0.45) !important;
}

body.op-login-page > footer a:hover {
    color: rgba(255, 255, 255, 0.75) !important;
}

@media (max-width: 900px) {
    .op-login {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 52px);
    }

    .op-login-brand {
        min-height: 220px;
        padding: 1.75rem 1.5rem 1.5rem;
        justify-content: flex-end;
    }

    .op-login-brand-copy {
        padding: 1.25rem 0 0.5rem;
        margin: 0;
    }

    .op-login-brand-copy h1 {
        font-size: 1.55rem;
    }

    .op-login-brand-copy p {
        font-size: 0.92rem;
        max-width: none;
    }

    .op-login-brand-bottom {
        display: none;
    }

    .op-login-brand-logo {
        filter: brightness(0) invert(1);
        height: 24px;
        max-width: 140px;
    }

    .op-login-panel {
        padding: 1.75rem 1.25rem 2.25rem;
        align-items: flex-start;
    }

    .op-login-mobile-logo {
        display: none;
    }
}

@media (max-width: 480px) {
    .op-login-brand-copy h1 {
        font-size: 1.35rem;
    }
}
