@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@font-face {
    font-family: 'EurostileRoundedExtended';
    src: url('/static/fonts/EurostileRoundedExtended.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
/* ---------------------- */
/* TEMAS E CORES B&W      */
/* ---------------------- */

:root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --text-color-hover: #f0f0f0;
    --text-color-sec: #8b949e;
    --border-color: #333;
    --input-bg: #1c1c1c;
    --primary-blue: #007b8c;
    --btn-text-color: #f0f0f0;
    --btn-gradient: linear-gradient(90deg, #002880 0%, #003da6 50%, #002880 100%);
    --btn-gradient-hover: linear-gradient(90deg, #001f60 0%, #002880 50%, #001f60 100%);
    --btn-border: #808080;
}

.light-mode {
    --bg-color: #C0C0C0;
    --text-color: #121212;
    --text-color-hover: #f0f0f0;
    --text-color-sec: #121212;
    --border-color: #c9d1d9;
    --input-bg: #f9f9f9;
    --primary-blue: #007b8c;
    --btn-text-color: #f0f0f0;
    --btn-gradient: linear-gradient(90deg, #4d7eff 0%, #003da6 50%, #4d7eff 100%);
    --btn-gradient-hover: linear-gradient(90deg, #3a6fff 0%, #002880 50%, #3a6fff 100%);
    --btn-border: #000000;
}

/* ---------------------- */
/* RESET E BASE GERAL     */
/* ---------------------- */

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

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #121212;
    color: #f0f0f0;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ---------------------- */
/* IMAGEM DE LOGIN        */
/* ---------------------- */

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.login-background::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("/static/img/fundo1.jpg") center/cover no-repeat;
  opacity: 1;
  animation: fade-in-out 45s infinite 0s;
  animation-delay: 0s;
  z-index: 0;
}

.login-background::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("/static/img/fundo2.jpg") center/cover no-repeat;
  opacity: 0;
  animation: fade-in-out 45s infinite 15s;
  animation-delay: 15s;
  z-index: 0;
}

.login-background span {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("/static/img/fundo3.jpg") center/cover no-repeat;
  opacity: 0;
  animation: fade-in-out 45s infinite 30s;
  animation-delay: 30s;
  z-index: 0;
}

.login-background .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
  z-index: 10;
}

/* ---------------------- */
/* BACKGROUND LOGO        */
/* ---------------------- */

 /* 'DUO' */
.background-logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    color: white;
    text-align: right;
    font-family: 'EurostileRoundedExtended', sans-serif;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 4px;
    font-size: 2.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

/* 'ALTO DE PINHEIROS' */
.background-logo-text span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 400;
}

/* ---------------------- */
/* ESTILOS CARD LOGIN     */
/* ---------------------- */

.login-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    background-color: var(--bg-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.login-card .logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.login-card .subtitle {
    color: var(--text-color-sec);
    margin-bottom: 30px;
}

.login-card .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-card label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-color-sec);
}

.login-card input {
    width: 100%;
    padding: 12px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

.login-card input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 123, 140, 0.3);
}

/* ---------------------- */
/* TEMA CLARO/ESCURO CARD */
/* ---------------------- */

.theme-toggle-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.2);
}

/* ---------------------- */
/* FOOTER                 */
/* ---------------------- */

.login-footer {
    color: white;
    font-size: 0.8rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    text-align: center;
    padding: 10px 0;
}

/* ---------------------- */
/* FORMULÁRIO PADRONIZADO */
/* ---------------------- */

form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1rem;
}

/* --------------------- */
/* BOTÕES                */
/* --------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--btn-gradient);
    padding: 6px 12px;
    gap: 6px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--btn-text-color);
    text-decoration: none;
    border: 1px solid var(--btn-border);
    cursor: pointer;
    width: 148px;
    height: 40px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--btn-gradient-hover);
}

/* ---------------------- */
/* LINK REDIRECT          */
/* ---------------------- */

.password-link-container {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--btn-border);
}

.password-link {
    color: var(--text-color-sec);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.password-link:hover {
    color: var(--text-color);
    text-decoration: underline;
}


/* ------------------------- */
/* MENSAGENS                 */
/* ------------------------- */

.messages {
    margin: 0 auto 1rem auto;
    list-style: none;
    padding: 0;
    max-width: 400px;
    text-align: center;
    transition: opacity 0.5s ease;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-size: 14px;
    overflow: hidden;
    animation: fadeIn 0.5s ease forwards, fadeOut 0.5s ease 4.5s forwards;
}

.message.success {
    background-color: #2e7d32;
    color: var(--text-color);
}

.message.error {
    background-color: #c62828;
    color: var(--text-color);
}

/* ------------------------- */
/* ANIMAÇÃO                  */
/* ------------------------- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
  to { opacity: 0; height: 0; padding: 0; margin: 0; }
}

@keyframes fade-in-out {
  0%   { opacity: 0; }
  1%   { opacity: 1; }
  33%  { opacity: 1; }
  34%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ------------------------- */
/* MOBILE FIRST              */
/* ------------------------- */

@media (max-width: 768px) {
    .login-footer {
        font-size: 0.7rem;
        padding: 5px 0;
    }
}