/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* background: linear-gradient(135deg, #7b78e2 0%, #a450ba 100%); */
    /* dvh = altura visível de verdade; o 100vh do celular conta a tela sem a barra do
       navegador e sobrava rolagem no login */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logoRoxa {
    width: 35%;
}

#title-login {
    color: #50226c;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 25rem;
    padding: 1.25rem;
}

.login-card {
    background-color: #ffffff;
    padding: 2.5rem 3.125rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    text-align: center;
}

h1 {
    color: #333;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1.875rem;
}

/* Botão Microsoft */
.btn-microsoft {
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 0.75rem;
    border-radius: 0.375rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    transition: background 0.3s;
}

.btn-microsoft img {
    width: 1.125rem;
}

/* Divisor "ou" */
.divider {
    margin: 1.562rem 0;
    position: relative;
    border-bottom: 1px solid #eee;
}

.divider span {
    position: absolute;
    top: -0.625rem;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 0 0.938rem;
    color: #999;
    font-size: 0.875rem;
}

/* Campos de Input */
.input-group {
    text-align: left;
    margin-bottom: 1.25rem;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0.375rem;
    outline-color: #7b78e2;
}

/* Botão Entrar */
.btn-submit {
    width: 100%;
    background-color: #7b78e2;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #6a67d1;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px);
    z-index: -1;
}

/* Rodapé */
footer {
    margin-top: 1.562rem;
    font-size: 0.812rem;
    color: #666;
}

footer a {
    color: #7b78e2;
    text-decoration: none;
    font-weight: 500;
}

/* Tema escuro: quem escolheu o escuro na intranet (tema.js) já vê o login escuro.
   Mesmos tons do tema-escuro.css; o login só carrega este arquivo. */
:root[data-theme="dark"] {
    color-scheme: dark;
}

:root[data-theme="dark"] body {
    background: #120e17;
}

:root[data-theme="dark"] .background-image {
    filter: blur(10px) brightness(0.45) saturate(0.9);
}

:root[data-theme="dark"] .login-card {
    background-color: #1f1928;
    border: 1px solid rgba(205, 180, 240, 0.1);
    box-shadow: 0 28px 72px -18px rgba(0, 0, 0, 0.8);
}

/* logo roxo: lilás claro */
:root[data-theme="dark"] .logoRoxa {
    filter: brightness(0) invert(90%) sepia(14%) saturate(4486%) hue-rotate(192deg) brightness(95%);
}

:root[data-theme="dark"] #title-login,
:root[data-theme="dark"] h1 {
    color: #efe9f6;
}

:root[data-theme="dark"] .subtitle {
    color: #ab9ebd;
}

:root[data-theme="dark"] .btn-microsoft {
    background: #272031;
    border-color: rgba(205, 180, 240, 0.2);
    color: #efe9f6;
}

:root[data-theme="dark"] .btn-microsoft:hover {
    background: #30283c;
}

/* aviso de erro do login (estilo inline no template) */
:root[data-theme="dark"] .login-card > div[style] {
    background-color: rgba(240, 110, 125, 0.14) !important;
    border-color: rgba(240, 138, 148, 0.5) !important;
    color: #f08a94 !important;
}