/* Sign-in Microsoft 365 — branding do tenant Foursys (réplica para
   campanha de conscientização). Tema escuro com ondas + card central. */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1b1b1b;
    background: #1c1410 url('../img/bg-foursys.svg') center / cover no-repeat fixed;
    display: flex;
    flex-direction: column;
}

/* Logo grande atrás do card (lado esquerdo) */
.brand-bg-logo {
    position: fixed;
    left: 6vw;
    top: 50%;
    transform: translateY(-50%);
    width: min(30vw, 430px);
    opacity: 0.9;
    pointer-events: none;
}

/* Selo To Work (topo direito) */
.towork-badge {
    position: fixed;
    top: 0;
    right: 4vw;
    width: 165px;
    pointer-events: none;
}

/* Palco central */
.stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px;
}

.card {
    width: 100%;
    max-width: 437px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.card-main {
    background: #ffffff;
    padding: 40px 44px 44px;
}

.card-logo {
    display: block;
    height: 26px;
    width: auto;
    margin-bottom: 22px;
}

.back-row { margin: 0 0 6px -6px; }

.back-link {
    display: inline-block;
    font-size: 13px;
    color: #0067b8;
    text-decoration: none;
    word-break: break-all;
}

.back-link:hover { text-decoration: underline; }

.back-arrow { color: #605e5c; margin-right: 8px; }

h1#loginHeader {
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    margin: 0 0 18px 0;
}

.form-field { margin-bottom: 6px; }

.form-field label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

/* Inputs no estilo underline do branding */
.form-field input {
    width: 100%;
    height: 30px;
    padding: 6px 2px;
    font-size: 15px;
    font-family: inherit;
    color: #1b1b1b;
    background: transparent;
    border: none;
    border-bottom: 1px solid #8a8886;
    border-radius: 0;
}

.form-field input:focus {
    outline: none;
    border-bottom: 2px solid #0067b8;
}

.form-help { margin: 14px 0 22px 0; }

.form-help a {
    font-size: 13px;
    color: #0067b8;
    text-decoration: none;
}

.form-help a:hover { text-decoration: underline; }

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.form-actions button {
    height: 32px;
    min-width: 100px;
    padding: 4px 12px;
    font-size: 15px;
    font-family: inherit;
    color: #ffffff;
    background: #0067b8;
    border: none;
    cursor: pointer;
}

.form-actions button:hover { background: #005da6; }

/* Seção cinza de boas-vindas sob o card */
.card-welcome {
    background: #eeeeee;
    padding: 26px 44px 34px;
}

.card-welcome p {
    margin: 0 0 14px 0;
    font-size: 14px;
    line-height: 1.5;
}

.card-welcome p:last-child { margin-bottom: 0; }

.welcome-title { font-weight: 400; font-size: 15px !important; }

/* Footer claro sobre o fundo escuro */
.page-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 18px 28px;
}

.page-footer a, .page-footer .dots {
    font-size: 12px;
    color: #e6e3df;
    text-decoration: none;
}

.page-footer a:hover { text-decoration: underline; }

.page-footer .dots { letter-spacing: 2px; cursor: default; }

/* Telas estreitas: esconde elementos de fundo */
@media (max-width: 900px) {
    .brand-bg-logo, .towork-badge { display: none; }
    .page-footer { position: static; justify-content: center; }
}
