/* reset simples */
* { box-sizing: border-box; margin:0; padding:0; }
html,body { height: 100%; }

/* tipografia e variáveis */
:root{
  --glass-bg: rgba(10,11,13,0.46);
  --accent: #ffffff;
  --muted: rgba(255,255,255,0.65);
  --radius: 16px;
  --max-width: 420px;
}

/* Background principal */
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: var(--accent);
  min-height: 100vh;
  background: url("./assets/fundo.png") center top / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* wrapper central */
.page, .login-wrapper {
  width: 100%;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 2;
  padding: 32px;
}

/* Caixa de login (vidro translúcido) */
.login-box{
  width: 90%;
  max-width: var(--max-width);
  background: var(--glass-bg);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(2,6,10,0.5);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  opacity: 0; /* inicial invisível */
  transform: translateY(30px) scale(0.96);
  transition: opacity 1.2s ease, transform 1.2s ease;
  position: relative;
}

/* Placeholder ocupa o espaço da logo dentro da caixa */
.logo-placeholder {
  width: 80%;
  max-width: 180px;
  height: 120px;
  margin: 6px auto 28px;
}

/* Logo animada (única) */
.logo-animated {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  width: 80%;
  max-width: 380px;
  opacity: 0;
  transition: all 1.6s ease-in-out;
  z-index: 3;
}

.logo-animated.visible {
  opacity: 1;
}

.logo-animated.to-placeholder {
  top: var(--logo-top, 20%);
  left: 50%;
  transform: translate(-50%, 0) scale(1);
  width: 40%;
  max-width: 180px;
}

/* Formulário */
form { display:block; margin: 0; }
.field { display:block; text-align:left; margin-bottom: 12px; }
.label-text { display:block; font-size: 12px; color: rgba(255,255,255,0.65); margin-bottom:6px; }

/* Inputs */
input[type="text"], input[type="password"]{
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: var(--accent);
  outline: none;
  font-size: 15px;
  transition: box-shadow 160ms, border-color 160ms;
}

input::placeholder { color: rgba(255,255,255,0.35); }

input:focus{
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 6px 18px rgba(10,12,14,0.45);
}

/* botões */
.btn {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  font-size: 15px;
}

.btn.primary{
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45) inset;
}

.btn.secondary{
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.06);
}

@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { transform: translateY(-2px); }
  .btn.secondary:hover{ background: rgba(255,255,255,0.03); transform: translateY(-1px); }
}

/* Responsividade */
@media (max-width:768px){
  .login-box { padding: 24px; border-radius: 14px; }
  .logo-placeholder { height: 100px; }
  input[type="text"], input[type="password"]{ font-size:14px; padding:10px 12px; }
  .btn { font-size:14px; padding:10px 12px; }
}

@media (max-width:480px){
  .login-box { padding: 16px; border-radius: 12px; }
  .logo-placeholder { height: 80px; }
  .logo-animated.to-placeholder { width: 50%; max-width: 140px; }
}

/* utilidades */
.sr-only { 
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}
