@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

/* ====== THEME VARS ====== */
:root{
  --green-main: #07b979;  /* light */
  --bg-page: #f2f2f2;
  --bg-card: #ffffff;
  --bg-input: #f2f2f2;
  --text: #1b1f1e;
  --label: #4e5955;
  --placeholder: #a9cbbf;
}

body.dark{
  --green-main: #3ebd69;  /* dark */
  --bg-page: #202020;
  --bg-card: #292929;
  --bg-input: #2f2f2f;
  --text: #ffffff;
  --label: #cfcfcf;
  --placeholder: #99aaaa;
}

/* ====== RESET ====== */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body{
  width:100%;
  height:100%;
  background: var(--bg-page);
  font-family: "IBM Plex Sans", sans-serif;
}

/* ====== HEADER ====== */
header{
  color:#fff;
  padding:40px 0;
  font-size:16px;
  font-weight:400;
  text-align:center;
}

header i{
  color:#fff;
  padding-right:15px;
}

.tw-text-green{
  color: var(--green-main);
}

/* ====== FORM CARD ====== */
form{
  width:100%;
  margin-top:0;
  border-radius:.5rem;
  max-width:430px;
  background: var(--bg-card);
  margin-left:auto;
  margin-right:auto;
}

form p{
  color:#171717;
  font-size:24px;
  font-weight:600;
}

body.dark form p{
  color:#ffffff;
}

.p1{
  padding-top:20px;
}

.p1 p{
  padding-bottom:10px;
}

.tw-flex.tw-cursor-pointer{
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.tw-flex.tw-gap-3.tw-items-center.tw-justify-center{
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ====== BUTTON PRIMARY ====== */
button#btnacessar{
  background: var(--green-main);
  width: calc(100% - 40px);
  border:none;
  color:#fff;
  gap:.5rem;
  border-radius:14px;
  padding:.75rem;
  font-size:18px;
  line-height:24px;
  font-weight:600;
  font-family:"IBM Plex Sans", sans-serif !important;
}

/* ====== ANIMACOES (mantive) ====== */
.animacaocaralho{
  color:#01834b;
  animation: colorchange 2s linear infinite, fa-spin 2s linear infinite !important;
  -webkit-animation: colorchange 2s linear infinite, fa-spin 2s linear infinite;
  background:#fff;
  border-radius:1000px;
  padding:6px;
  font-size:42px !important;
}

/* ====== TELA SOBRE TELA ====== */
.tela-sobre-tela{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background:#fff;
  height:100%;
  z-index:999;
}

.tela-sobre-tela .caixa-aviso{
  width:90%;
}

/* ====== MODAL ====== */
.modal-fundo{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  background: rgba(0,0,0,0.7);
  height:100%;
  z-index:999;
}

.modal-caixa{
  width:80%;
  background:#fff;
  border-radius:12px;
  margin-top:150px;
  padding-top:30px;
  padding-bottom:20px;
  color:#9e9e9e;
}

#closeModal, #closeModalConfirmaAparelho{
  width:70% !important;
  max-width:250px;
  margin-top:15px;
  color:#fff;
  text-decoration:none;
  background:#11c76f;
  cursor:pointer;
  border:none;
  line-height:36px;
  padding:0 14px;
  font-size:1.1rem;
  font-weight:400;
  border-radius:10000px!important;
}

/* ====== INPUTS ====== */
label{
  color: var(--label);
  font-weight:600;
  font-size:12px;
}

input{
  color: var(--text);
  font-weight:600;
  font-size:15px;
  line-height:20px;
  background: var(--bg-input);
  border-radius:.5rem;
  border:none;
  padding: 0 15px;
  margin-top:10px;
  width: 100%;
  height: 2.75rem;
}

input:focus,
input:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}

::placeholder{
  color: var(--placeholder);
  opacity:1;
}

/* ====== BOTTOM BAR ====== */
.bottom-bar{
  width: calc(100% - 40px);
  margin: 20px auto 18px auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width: 430px;
}

.bottom-left{
  display:flex;
  align-items:center;
  gap:10px;
}

.theme-ico{
  color: var(--green-main);
  display:block;
}

.switch{
  width:48px;
  height:26px;
  border:none;
  border-radius:6px;
  background: var(--green-main);
  position:relative;
  cursor:pointer;
  padding:0;
}

.knob{
  width:18px;
  height:18px;
  border-radius:4px;
  background:#ffffff; /* light */
  position:absolute;
  top:4px;
  left:4px;
  transition: transform .18s ease, background .18s ease;
}

body.dark .switch .knob{
  background:#2a2a2a; /* dark */
}

/* ====== LANGUAGE ====== */
.bottom-right{ position:relative; }

.lang-btn{
  background:transparent;
  border:none;
  cursor:pointer;
  font-weight:600;
  font-size:12px;
  color: var(--green-main);
  text-decoration: underline;
  display:flex;
  align-items:center;
  gap:8px;
}

.lang-menu{
  position:absolute;
  right:0;
  top:22px;
  background: var(--bg-card);
  border-radius:10px;
  padding:6px;
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
  display:none;
  min-width:150px;
  z-index:999;
}

.lang-menu button{
  width:100%;
  text-align:left;
  background:transparent;
  border:none;
  padding:8px 10px;
  cursor:pointer;
  border-radius:8px;
  font-weight:600;
  font-size:12px;
  color: var(--text);
}

.lang-menu button:hover{
  background: var(--bg-input);
}


#btnacessar:disabled {
  background: #e6e6e6;
  color: #a0a0a0;
  cursor: not-allowed;
}
