/* ============================================================
   LOGIN / AUTH — estilos do layout de autenticação
   Complementa o Bootstrap 5 (carregado via app.css)
   ============================================================ */

:root {
    --auth-accent:       #0891b2;
    --auth-accent-dark:  #0e7490;
    --auth-text:         #0f172a;
    --auth-muted:        #64748b;
    --auth-border:       #e2e8f0;
    --auth-bg:           #f8fafc;
}

[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(255, 19, 97, 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;
}

@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 */
.form-blob-1,
.form-blob-2 {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.form-blob-1 {
    width: 24rem;
    height: 24rem;
    top: -8rem;
    right: -8rem;
    background: rgba(8,145,178,0.35);
}
.form-blob-2 {
    width: 22rem;
    height: 22rem;
    bottom: -8rem;
    left: -6rem;
    background: rgba(217,70,239,0.18);
}

/* ------------------------------------------------------------
   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-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.875rem;
    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(8,145,178,0.15);
}

/* Botão de mostrar/ocultar senha */
.toggle-password {
    position: absolute;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    background: transparent;
    color: var(--auth-muted);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: color 0.2s, background 0.2s;
}
.toggle-password:hover {
    color: var(--auth-accent);
    background: rgba(8,145,178,0.08);
}

/* ------------------------------------------------------------
   Checkbox "Lembrar de mim"
   ------------------------------------------------------------ */
.auth-check .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.15rem;
    border-color: var(--auth-border);
    cursor: pointer;
}
.auth-check .form-check-input:checked {
    background-color: var(--auth-accent);
    border-color: var(--auth-accent);
}
.auth-check .form-check-input:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(8,145,178,0.15);
}
.auth-check .form-check-label {
    font-size: 0.85rem;
    color: var(--auth-muted);
    cursor: pointer;
}

/* ------------------------------------------------------------
   Botão principal
   ------------------------------------------------------------ */
.btn-login {
    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(8,145,178,0.25);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}
.btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(8,145,178,0.35);
}
.btn-login:active:not(:disabled) { transform: translateY(0); }
.btn-login:disabled { opacity: 0.65; cursor: not-allowed; }
