/* ============================================================
   LYNUS TECH — Login / Cadastro Page
   ============================================================ */

/* ---- Nav ---- */
.auth-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 10, 12, 0.6);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.auth-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.auth-nav .nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.auth-nav .nav-signin:hover { color: var(--accent); }

/* ---- Main layout ---- */
.auth-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 64px;
  position: relative;
  z-index: 1;
}

/* ---- Card ---- */
.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 40px 40px 36px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.auth-glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 340px; height: 240px;
  background: radial-gradient(ellipse at center, var(--accent-glow), transparent 68%);
  opacity: 0.45;
  pointer-events: none;
  filter: blur(8px);
}

/* ---- Header ---- */
.auth-header { margin-bottom: 22px; }
.auth-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.2;
}
.auth-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
  line-height: 1.5;
}

/* ---- Tabs ---- */
.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ---- Social login ---- */
.auth-socials {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 0;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
}
.social-btn:hover {
  background: var(--surface-strong);
  border-color: var(--accent-line);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.social-btn:active { transform: translateY(0); box-shadow: none; }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
}

/* X icon is white/light colored */
.social-btn-x .social-icon svg,
.social-btn-apple .social-icon svg { color: var(--text); }

/* ---- Divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 16px;
  color: var(--text-3);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- Form ---- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.auth-field { display: flex; flex-direction: column; gap: 7px; }
.auth-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
}
.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}
.auth-input::placeholder { color: var(--text-3); }
.auth-input:focus {
  border-color: var(--accent-line);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-eye {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}
.auth-eye:hover { opacity: 1; }

.auth-forgot {
  display: block;
  text-align: right;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  margin-top: -6px;
  transition: opacity 0.2s ease;
}
.auth-forgot:hover { opacity: 0.72; }

.auth-msg {
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 9px;
  border: 1px solid transparent;
}
.auth-msg-ok  { background: var(--ok-soft);   color: var(--ok);   border-color: rgba(52,224,161,0.3); }
.auth-msg-err { background: var(--crit-soft); color: var(--crit); border-color: rgba(255,92,108,0.3); }

.auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  margin-top: 4px;
  border-radius: 11px;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.auth-submit.loading { opacity: 0.7; pointer-events: none; }

.auth-spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(7,8,12,0.3);
  border-top-color: #07080c;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin { to { transform: rotate(360deg); } }

/* ---- Footer text ---- */
.auth-switch {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-2);
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.auth-link {
  background: none;
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: 600;
  color: var(--accent);
  padding: 0;
  transition: opacity 0.2s ease;
}
.auth-link:hover { opacity: 0.72; }

/* ---- Responsive ---- */
@media (max-width: 500px) {
  .auth-card { padding: 28px 20px 26px; }
  .auth-title { font-size: 22px; }
}
