:root {
  --card-bg: rgba(0,0,0,0.75);
  --text: #fff;
  --radius: 14px;
  --accent: #ff7b00;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../imagens/fundo_login.webp') center center/cover no-repeat fixed;
  position: relative;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 0;
}

.login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  border: 1px solid rgba(255,130,0,0.4);
  box-shadow: 0 0 25px rgba(255,130,0,0.2);
  text-align: center;
}

.brand-logo {
  width: 180px;
  height: auto;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(255,140,0,0.6));
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

p.lead {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}

/* Campos */
.field {
  text-align: left;
  margin-bottom: 18px;
  position: relative;
}

.field label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-bottom: 6px;
  gap: 6px;
}

.field input {
  width: 100%;
  padding: 12px;
  padding-right: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #222;
  color: var(--text);
  font-size: 14px;
  outline: none;
}

.field input:focus {
  border-color: var(--accent);
  background: #333;
}

.field input::placeholder {
  color: rgba(255,255,255,0.5);
}

.field .toggle-pass {
  position: absolute;
  top: calc(50% + 10px);
  right: 12px;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

/* Botões */
.btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.btn:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.btn-entrar {
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  color: #fff;
}

.btn-criar,
.btn-recuperar {
  background: linear-gradient(135deg, #666, #444);
  color: #fff;
}

/* Toast */
.toast {
  position: fixed;
  top: 30px; 
  left: 50%;
  transform: translateX(-50%) translateY(-70px); 
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 16px; 
  border-radius: 8px;
  font-size: 13px;
  max-width: 95%; 
  white-space: nowrap; 
  overflow: hidden;
  text-overflow: ellipsis; 
  opacity: 0;
  z-index: 1000;
  transition: all .35s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0); 
}

/* Cores */
.toast.success {
  background: rgba(0,180,80,0.9);
}

.toast.error {
  background: rgba(255,70,70,0.9);
}

/* Ajuste para telas pequenas */
@media (max-width: 480px) {
  .toast {
    font-size: 12px;
    padding: 8px 12px;
    top: 10px;
  }
}


@media(max-width:480px) {
  .login-card { padding: 24px; }
  .brand-logo { width: 150px; }
}

 /* ==================== OVERLAY ====================== */
#overlayKaioh {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0, .78);
    backdrop-filter: blur(4px);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.overlay-box {
    background: #111;
    border: 3px solid #222;
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

/* animação da esfera flutuando */
.overlay-box img {
    width: 95px;
    margin-bottom: 15px;
    animation: esferaFlutuar 2.2s ease-in-out infinite;
    will-change: transform, filter;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes esferaFlutuar {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 6px rgba(255,200,50,.35));
    }
    50% {
        transform: translateY(-12px);
        filter: drop-shadow(0 0 14px rgba(255,220,90,.75));
    }
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 6px rgba(255,200,50,.35));
    }
}

.overlay-msg {
    font-size: 22px;
    font-weight: bold;
    color: #ffcc33;
    margin-top: 8px;
}

/* ==================== MOBILE ====================== */
@media(max-width:576px){
    .overlay-msg { font-size: 18px; }
    .overlay-box img { width: 70px; }
}

.btn-secundario {
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
    background: linear-gradient(135deg, #666, #444);
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    transition: 0.2s;
    text-decoration: none;
}

.btn-secundario:hover {
    
    transform: scale(1.02);
}
