/* ============================================================
   FORGOT PASSWORD — estilos do layout de recuperação de senha
   Complementa o Bootstrap 5 (carregado via app.css)
   Base compartilhada com login.css; acento roxo (#7c3aed)
   ============================================================ */

:root {
    --auth-accent:       #7c3aed;
    --auth-accent-dark:  #6b21a8;
    --auth-text:         #0f172a;
    --auth-muted:        #64748b;
    --auth-border:       #e2e8f0;
    --auth-bg:           #f8fafc;
    --color-emerald-400: #34d399;
}

[x-cloak] { display: none !important; }

/* ------------------------------------------------------------
   Wrapper de tela cheia (split-screen)
   ------------------------------------------------------------ */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    font-family: 'Outfit', system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--auth-bg);
    color: var(--auth-text);
}

/* ------------------------------------------------------------
   Painel esquerdo — imagem
   ------------------------------------------------------------ */
.auth-image-panel {
    position: relative;
    display: none;
    flex: 1 1 50%;
    overflow: hidden;
    background: linear-gradient(-225deg, #231557 0%, #44107A 29%, rgba(124, 58, 237, 0.75) 100%);
}

.auth-image-panel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 3rem;
}

.auth-image-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 3rem;
    color: #fff;
}

.auth-image-content h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.auth-image-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    max-width: 28rem;
}

/* Badge "P-Work" sobre a imagem */
.auth-image-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.auth-image-badge .dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52,211,153,0.3);
}

@media (min-width: 992px) {
    .auth-image-panel { display: block; }
}

/* ------------------------------------------------------------
   Painel direito — formulário
   ------------------------------------------------------------ */
.auth-form-panel {
    position: relative;
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow: hidden;
    background: #fff;
}

/* "Blobs" decorativos de fundo (tamanho/posição definidos inline) */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* ------------------------------------------------------------
   Card do formulário
   ------------------------------------------------------------ */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    background: #fff;
    border: 1px solid var(--auth-border);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(15,23,42,0.08);
    padding: 2.5rem 2rem;
}

@media (min-width: 576px) {
    .auth-card { padding: 2.75rem 2.5rem; }
}

/* Helper de raio (caso app.css não esteja presente) */
.rounded-xl { border-radius: 0.75rem !important; }

/* ------------------------------------------------------------
   Inputs com ícone
   ------------------------------------------------------------ */
.input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: var(--auth-muted);
    pointer-events: none;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--auth-border);
    border-radius: 0.75rem;
    background: var(--auth-bg);
    color: var(--auth-text);
    font-size: 0.95rem;
    font-family: inherit;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.auth-input::placeholder { color: #94a3b8; }

.auth-input:focus {
    background: #fff;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

/* ------------------------------------------------------------
   Botão principal
   ------------------------------------------------------------ */
.btn-submit {
    width: 100%;
    border: none;
    border-radius: 0.75rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--auth-accent), var(--auth-accent-dark));
    box-shadow: 0 8px 20px rgba(124,58,237,0.25);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(124,58,237,0.35);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.65; cursor: not-allowed; }
