/* ============================================================
   login.css  –  Estilos da página de login da Wiki mplan
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ── Painel esquerdo (branco) ── */
.left-panel {
    width: 30%;
    min-width: 320px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 50px 40px 30px;
    z-index: 10;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .08);
}

.left-panel .top { width: 100%; text-align: center; margin-top: 20vh; }

.logo { width: 160px; margin-bottom: 18px; }

.title {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 0.82rem;
    color: #3a7bd5;
    margin-bottom: 32px;
}

/* ── Formulário ── */
.form-group { width: 100%; margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 0.87rem;
    color: #333;
    outline: none;
    transition: border-color .2s;
}

.form-group input:focus { border-color: #3a7bd5; }

.password-wrapper { position: relative; }

.password-wrapper input { padding-right: 38px; }

.toggle-pw {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 1rem;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
}

.btn-entrar {
    width: 100%;
    padding: 11px;
    background: #3a7bd5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background .2s;
}

.btn-entrar:hover:not([disabled]) { background: #2c64b8; }

/* ── Mensagens de feedback ── */
.error-msg,
.warn-msg {
    border-radius: 6px;
    padding: 9px 12px;
    font-size: 0.82rem;
    margin-bottom: 14px;
    width: 100%;
}

.error-msg {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.warn-msg {
    background: #fff8e1;
    color: #b26a00;
    border: 1px solid #ffe082;
}

/* ── Rodapé ── */
.footer-brand {
    font-size: 0.72rem;
    color: #aaa;
    text-align: center;
}

.footer-brand img { width: 48px; vertical-align: middle; margin-left: 4px; }

/* ── Painel direito (escuro + canvas) ── */
.right-panel {
    flex: 1;
    position: relative;
    background: #040d1f;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#particleCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.horizon-text {
    position: relative;
    z-index: 2;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: .18em;
    color: #fff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0;
    user-select: none;
}

.horizon-text .h-letter { display: inline-block; }

.horizon-orb {
    width: clamp(50px, 7vw, 90px);
    height: clamp(50px, 7vw, 90px);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #60d0f0 0%, #3a8fd9 40%, #1a4fa8 80%, #0d2b6b 100%);
    box-shadow: 0 0 30px rgba(90, 180, 255, .6);
    display: inline-block;
    margin: 0 2px;
    vertical-align: middle;
}
