:root{
  --primary:#014D3B;
  --primary-dark:#00382C;
  --primary-light:#0B6E56;
  --gold:#C9A65A;
  --gold-light:#E6C98A;
  --bg:#F5F7F6;
  --white:#FFFFFF;
  --text:#17211D;
  --muted:#7A837F;
}

#tela_2 {
	display: none;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

body{
  min-height:100vh;
  background:
    radial-gradient(circle at top right, rgba(201,166,90,.25), transparent 28%),
    radial-gradient(circle at bottom left, rgba(11,110,86,.35), transparent 32%),
    linear-gradient(135deg,var(--primary-dark),var(--primary));
  display:flex;
  justify-content:center;
  align-items:center;
  padding:20px;
}

.app{
  width:100%;
  max-width:430px;
  min-height:860px;
  background:transparent;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
  position:relative;
}

/* LOGIN */
.login{
  min-height:860px;
  padding:36px 28px;
  background:
    radial-gradient(circle at 80% 10%, rgba(201,166,90,.25), transparent 28%),
    linear-gradient(160deg,#00382C,#014D3B 55%,#0B6E56);
  color:white;
  display:flex;
  flex-direction:column;
}

.logo{
  text-align:center;
  margin-top:18px;
  margin-bottom:70px;
}

.logo img {
  width: 100%; /* ajuste se quiser */
  animation: floatLogo 3s ease-in-out infinite;
}

/* animação flutuante */
@keyframes floatLogo {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

.logo img{
  max-width:350px;
}

.login-title{
  font-size:38px;
  line-height:1.1;
  font-weight:300;
  margin-bottom:12px;
}

.login-title strong{
  display:block;
  font-weight:800;
  color:var(--gold-light);
}

.login-text{
  color:rgba(255,255,255,.72);
  font-size:15px;
  line-height:1.7;
  margin-bottom:36px;
}

.form-card{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(20px);
  border-radius:30px;
  padding:24px;
  box-shadow:0 20px 50px rgba(0,0,0,.18);
}

.group{
  margin-bottom:16px;
}

.group label{
  display:block;
  font-size:15px;
  font-weight:600;
  margin-bottom:8px;
  color:rgba(255,255,255,.85);
}

.group input{
  width:100%;
  height:56px;
  border:none;
  outline:none;
  border-radius:18px;
  padding:0 18px;
  font-size:15px;
  color:white;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
}

.group input::placeholder{
  color:rgba(255,255,255,.45);
}

.forgot{
  text-align:right;
  margin:4px 0 22px;
}

.forgot a{
  color:var(--gold-light);
  font-size:13px;
  text-decoration:none;
  font-weight:600;
}

.btn{
  width:100%;
  height:58px;
  border:none;
  border-radius:18px;
  font-size:16px;
  font-weight:800;
  cursor:pointer;
  transition:.25s;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-login{
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  color:var(--primary-dark);
}

.btn-outline{
  margin-top:14px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.18);
  color:white;
}

.login-footer{
  margin-top:auto;
  text-align:center;
  color:rgba(255,255,255,.65);
  font-size:13px;
}

/* HOME */
.home{
  display:none;
  min-height:860px;
  padding:28px 22px 95px;
}

.top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}

.avatar{
  width:46px;
  height:46px;
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-weight:800;
}

.hello h1{
  font-size:26px;
  color:var(--text);
}

.hello p{
  font-size:14px;
  color:var(--muted);
  margin-top:4px;
}

.hero-card{
  background:
    radial-gradient(circle at top right, rgba(230,201,138,.35), transparent 35%),
    linear-gradient(135deg,var(--primary-dark),var(--primary-light));
  border-radius:32px;
  padding:28px;
  color:white;
  margin-bottom:22px;
  box-shadow:0 18px 40px rgba(1,77,59,.25);
}

.hero-card span{
  color:var(--gold-light);
  font-size:13px;
  font-weight:800;
  letter-spacing:1.5px;
}

.hero-card h2{
  font-size:28px;
  margin:12px 0;
}

.progress{
  width:100%;
  height:12px;
  background:rgba(255,255,255,.18);
  border-radius:50px;
  overflow:hidden;
  margin:22px 0 12px;
}

.progress div{
  width:46%;
  height:100%;
  background:linear-gradient(90deg,var(--gold),var(--gold-light));
  border-radius:50px;
}

.stats{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:22px;
}

.stat{
  background:white;
  border-radius:24px;
  padding:20px;
  box-shadow:0 12px 25px rgba(0,0,0,.06);
}

.stat strong{
  display:block;
  font-size:28px;
  color:var(--primary);
}

.stat span{
  font-size:13px;
  color:var(--muted);
}

.section-title{
  font-size:18px;
  color:var(--text);
  margin-bottom:14px;
}

.action{
  background:white;
  border-radius:26px;
  padding:18px;
  display:flex;
  align-items:center;
  gap:16px;
  box-shadow:0 12px 25px rgba(0,0,0,.06);
  margin-bottom:14px;
}

.icon{
  width:50px;
  height:50px;
  border-radius:18px;
  background:#EEF4F1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
}

.action h3{
  font-size:15px;
  color:var(--text);
}

.action p{
  font-size:13px;
  color:var(--muted);
  margin-top:3px;
}

/* QUESTION */
.question{
  display:none;
  min-height:860px;
  padding:28px 22px 95px;
  background:var(--bg);
}

.question-header{
  background:linear-gradient(135deg,var(--primary-dark),var(--primary));
  padding:24px;
  border-radius:30px;
  color:white;
  margin-bottom:22px;
}

.question-header small{
  color:var(--gold-light);
  font-weight:800;
}

.question-header h2{
  font-size:24px;
  margin-top:8px;
}

.q-card{
  background:white;
  border-radius:32px;
  padding:28px;
  box-shadow:0 16px 35px rgba(0,0,0,.08);
}

.q-number{
  color:var(--gold);
  font-size:14px;
  font-weight:900;
  margin-bottom:12px;
}

.q-text{
  font-size:24px;
  line-height:1.45;
  color:var(--text);
  font-weight:700;
  margin-bottom:26px;
}

.option{
  width:100%;
  min-height:58px;
  border:1px solid #E0E6E2;
  border-radius:18px;
  background:#FAFBFA;
  margin-bottom:12px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:15px;
  font-weight:700;
  color:var(--text);
  cursor:pointer;
}

.option.active{
  background:linear-gradient(135deg,var(--primary),var(--primary-light));
  color:white;
  border:none;
}

.next{
  position:absolute;
  left:22px;
  right:22px;
  bottom:25px;
}

.btn-next{
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  color:var(--primary-dark);
}

/* BOTTOM NAV */
.nav{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  background:white;
  border-radius:26px;
  height:66px;
  display:flex;
  justify-content:space-around;
  align-items:center;
  box-shadow:0 14px 35px rgba(0,0,0,.12);
}

.nav a{
  text-decoration:none;
  color:#9BA39F;
  font-size:20px;
}

.nav a.active{
  color:var(--primary);
}

/* DEMO BUTTONS */
.demo-switch{
  position:fixed;
  right:20px;
  top:20px;
  display:flex;
  gap:8px;
  z-index:99;
}

.demo-switch button{
  border:none;
  padding:10px 14px;
  border-radius:12px;
  background:white;
  color:var(--primary);
  font-weight:800;
  cursor:pointer;
}

@media(max-width:480px){
  body{
    padding:0;
  }

  .app{
    max-width:100%;
    min-height:100vh;
    border-radius:0;
  }

  .login,
  .home,
  .question{
    min-height:100vh;
  }

  .logo{
    margin-bottom:55px;
  }

  .login-title{
    font-size:34px;
  }

  .q-text{
    font-size:21px;
  }

  .demo-switch{
    display:none;
  }
}

#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #003E31;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* container das bolinhas */
.dots {
  display: flex;
  gap: 8px;
}

/* bolinhas */
.dots span {
  width: 12px;
  height: 12px;
  background: #E4C27A;
  border-radius: 50%;
  animation: bounce 1s infinite ease-in-out;
}

/* delay para efeito sequência */
.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* animação */
@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.4;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* esconder loader */
#loader.hide {
  opacity: 0;
  visibility: hidden;
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

/* bolinhas */
.particles span {
  position: absolute;
  bottom: -20px;
  width: 6px;
  height: 6px;
  background: rgba(228, 194, 122, 0.7); /* dourado suave */
  border-radius: 50%;
  animation: rise 10s linear infinite;
}

/* animação subir */
@keyframes rise {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-110vh) scale(1.2);
    opacity: 0;
  }
}

.msg {
  margin-top: 15px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  display: none;
  animation: fadeIn .3s ease-in-out;
}

.msg.error {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: #ffb3b3;
}

.msg.success {
  background: rgba(39, 174, 96, 0.15);
  border: 1px solid rgba(39, 174, 96, 0.35);
  color: #b7f5cc;
}

.msg.info {
  background: rgba(52, 152, 219, 0.15);
  border: 1px solid rgba(52, 152, 219, 0.35);
  color: #bcdcff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.btn-loading::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translateY(-50%);
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}
