/* ============================================================
   OperisMed — Telas de autenticação (esqueci/redefinir senha)
   Estilos compartilhados, mesmo padrão visual da tela de login.
   Classes prefixadas com "oml-" para nao colidir com o Adminator.
   ============================================================ */
.oml-page {
    --navy:    #0D2461;
    --teal:    #00B4C8;
    --teal-lt: #4DD9E8;
    --white:   #FFFFFF;
    --gray-50: #F5F7FA;
    --gray-100:#EAEEF4;
    --gray-400:#94A3B8;
    --gray-600:#4B5E7A;
    --gray-800:#1E2D45;

    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
}

/* ---- Painel da marca (esquerda) ---------------------------- */
.oml-brand {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
}
.oml-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    animation: oml-drift 12s ease-in-out infinite alternate;
}
.oml-orb-1 { width: 520px; height: 520px; background: var(--teal);    top: -120px; left: -100px; animation-delay: 0s; }
.oml-orb-2 { width: 380px; height: 380px; background: #7B4FFF;         bottom: -60px; right: -80px; animation-delay: -5s; }
.oml-orb-3 { width: 260px; height: 260px; background: var(--teal-lt);  bottom: 160px; left: 60px;  animation-delay: -9s; }
@keyframes oml-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(30px,20px) scale(1.08); } }

.oml-brand-content { position: relative; z-index: 1; }
.oml-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--teal-lt); margin-bottom: 20px; opacity: .9;
}
.oml-headline {
    font-size: clamp(28px, 3vw, 38px); font-weight: 700; line-height: 1.18;
    color: var(--white); margin-bottom: 20px; letter-spacing: -.5px;
}
.oml-sub {
    font-size: 15px; font-weight: 400; line-height: 1.65;
    color: rgba(255,255,255,.65); max-width: 340px;
}
.oml-pills { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 48px; }
.oml-pill {
    display: flex; align-items: center; gap: 7px;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
    border-radius: 100px; padding: 7px 14px; font-size: 12px; font-weight: 500;
    color: rgba(255,255,255,.80); backdrop-filter: blur(6px);
}
.oml-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-lt); }
.oml-brand-footer { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,.30); }

/* ---- Painel do formulario (direita) ------------------------ */
.oml-form-panel {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 48px 40px; background: var(--white);
}
.oml-card { width: 100%; max-width: 400px; }

.oml-logo-header { text-align: center; margin-bottom: 36px; }
.oml-logo-header img { width: 200px; max-width: 100%; height: auto; }

.oml-form-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.oml-title { font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -.4px; margin-bottom: 6px; }
.oml-form-sub { font-size: 14px; color: var(--gray-400); margin-bottom: 36px; line-height: 1.5; }
.oml-divider { width: 40px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--teal-lt)); margin-bottom: 32px; }

.oml-card label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .4px; color: var(--navy); margin-bottom: 7px; }
.oml-input-wrap { position: relative; margin-bottom: 20px; }
.oml-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
.oml-card input[type="text"],
.oml-card input[type="email"],
.oml-card input[type="password"] {
    width: 100%; padding: 13px 14px 13px 42px; border: 1.5px solid var(--gray-100); border-radius: 10px;
    font-size: 14px; font-family: 'Inter', sans-serif; color: var(--gray-800); background: var(--gray-50);
    transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.oml-card input::placeholder { color: var(--gray-400); }
.oml-card input:focus { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(0,180,200,.12); }

.oml-btn {
    width: 100%; padding: 14px; margin-top: 8px; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 600; font-family: 'Inter', sans-serif; letter-spacing: .2px; cursor: pointer;
    background: linear-gradient(135deg, var(--navy) 0%, #1A4FA0 60%, var(--teal) 140%);
    background-size: 200% 200%; color: var(--white);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: background-position .4s ease, box-shadow .2s, transform .15s;
    box-shadow: 0 4px 20px rgba(13,36,97,.22);
}
.oml-btn:hover { background-position: right center; box-shadow: 0 6px 28px rgba(13,36,97,.32); transform: translateY(-1px); }
.oml-btn:active { transform: translateY(0); }
.oml-btn:disabled { opacity: .7; cursor: default; transform: none; }
.oml-btn-arrow { display: inline-flex; transition: transform .2s; }
.oml-btn:hover .oml-btn-arrow { transform: translateX(3px); }

.oml-help-row { margin-top: 28px; text-align: center; }
.oml-help-row p { font-size: 12px; color: var(--gray-400); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 500; }
.oml-help-row a { font-size: 13px; color: var(--teal); font-weight: 600; text-decoration: none; transition: opacity .15s; }
.oml-help-row a:hover { opacity: .7; }

.oml-restricted-note { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--gray-100); font-size: 11px; color: var(--gray-400); text-align: center; line-height: 1.6; }
.oml-restricted-note strong { color: var(--gray-600); }

@media (max-width: 768px) {
    .oml-page { grid-template-columns: 1fr; }
    .oml-brand { display: none; }
    .oml-form-panel { padding: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) { .oml-orb { animation: none; } }

/* Toast vanilla simples (sem jQuery) */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(92vw, 360px);
}
.toast-item {
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    font-size: 13.5px;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.toast-item.show { opacity: 1; transform: translateY(0); }
.toast-item .toast-title { font-weight: 600; display: block; margin-bottom: 2px; }
.toast-item.toast-erro    { background: #d9534f; }
.toast-item.toast-sucesso { background: #2e7d32; }
.toast-item.toast-info    { background: #2563eb; }
.toast-item.toast-warning { background: #f59e0b; color: #1f2937; }
