/* ========================================
   Dracoryx THEME — REGISTRO (register.css)
   Dark neon · Ciano + Dourado · Cinematográfico
   ======================================== */

:root {
  --primary: #00bcd4;
  --primary-light: #00d4e8;
  --primary-dark: #0097a7;
  --secondary: #ffd700;
  --secondary-light: #ffeb3b;

  --bg-dark: #0a0e27;
  --bg-darker: #050810;
  --bg-card: rgba(15, 25, 50, 0.65);

  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
  --text-tertiary: #90a4ae;

  --accent-purple: #9c27b0;
  --success: #4caf50;
  --warning: #ffa726;
  --error: #ef5350;

  --glow-primary: rgba(0, 188, 212, 0.5);
  --glow-secondary: rgba(255, 215, 0, 0.35);
  --shadow-dark: rgba(0, 0, 0, 0.8);
}

/* ========================================
   RESET
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========================================
   BACKGROUND — GRID + ORBS
   ======================================== */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.background-animation::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(
      0deg,
      transparent 24%,
      rgba(0, 188, 212, 0.045) 25%,
      rgba(0, 188, 212, 0.045) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 188, 212, 0.045) 75%,
      rgba(0, 188, 212, 0.045) 76%,
      transparent 77%
    ),
    linear-gradient(
      90deg,
      transparent 24%,
      rgba(0, 188, 212, 0.045) 25%,
      rgba(0, 188, 212, 0.045) 26%,
      transparent 27%,
      transparent 74%,
      rgba(0, 188, 212, 0.045) 75%,
      rgba(0, 188, 212, 0.045) 76%,
      transparent 77%
    );
  background-size: 50px 50px;
  background-attachment: fixed;
}

.particle {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: floatOrb 20s ease-in-out infinite;
  opacity: 0.18;
}

.particle-1 {
  width: 320px;
  height: 320px;
  background: var(--primary);
  top: 5%;
  left: 5%;
  animation-delay: 0s;
}

.particle-2 {
  width: 260px;
  height: 260px;
  background: var(--accent-purple);
  top: 40%;
  right: 5%;
  animation-delay: 3s;
}

.particle-3 {
  width: 200px;
  height: 200px;
  background: var(--secondary);
  bottom: 10%;
  left: 40%;
  animation-delay: 6s;
}

.particle-4 {
  width: 220px;
  height: 220px;
  background: var(--primary-dark);
  top: 60%;
  left: 20%;
  animation-delay: 9s;
}

.particle-5 {
  width: 180px;
  height: 180px;
  background: var(--primary-light);
  top: 15%;
  right: 30%;
  animation-delay: 12s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.18;
  }
  33% {
    transform: translate(30px, -40px) scale(1.1);
    opacity: 0.26;
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
    opacity: 0.13;
  }
}

/* ========================================
   CONTAINER E LAYOUT
   ======================================== */
.container {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 60px;
}

.register-wrapper {
  flex: 1;
  max-width: 520px;
  animation: slideInLeft 0.8s ease-out both;
}

.info-panel {
  flex: 1;
  max-width: 420px;
  animation: slideInRight 0.8s ease-out both;
  display: none;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   LOGO SECTION
   ======================================== */
.logo-section {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.logo-container {
  margin-bottom: 18px;
}

.logo-circle {
  width: 96px;
  height: 96px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  color: var(--bg-darker);
  border: 2px solid rgba(0, 188, 212, 0.5);
  box-shadow:
    0 0 40px var(--glow-primary),
    0 0 80px rgba(0, 188, 212, 0.22),
    inset 0 0 18px rgba(255, 255, 255, 0.08);
  animation: pulseLogo 3s ease-in-out infinite;
  position: relative;
}

.logo-circle::after {
  content: "";
  position: absolute;
  width: 130%;
  height: 130%;
  border-radius: 50%;
  border: 1px solid rgba(0, 188, 212, 0.14);
  animation: ringPulse 3s ease-in-out infinite;
}

.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 0 15px var(--glow-primary));
  animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 15px var(--glow-primary));
  }
  50% {
    filter: drop-shadow(0 0 25px var(--glow-primary)) brightness(1.2);
  }
}

@keyframes pulseLogo {
  0%,
  100% {
    box-shadow:
      0 0 40px var(--glow-primary),
      0 0 80px rgba(0, 188, 212, 0.22),
      inset 0 0 18px rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 60px var(--glow-primary),
      0 0 120px rgba(0, 188, 212, 0.38),
      inset 0 0 28px rgba(255, 255, 255, 0.12);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.logo-text {
  font-family: "Audiowide", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 6px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.logo-subtitle {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* ========================================
   FORM
   ======================================== */
.register-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--primary);
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  font-size: 15px;
  color: var(--primary);
  z-index: 2;
  pointer-events: none;
  transition: all 0.3s ease;
  text-shadow: 0 0 8px var(--glow-primary);
}

.input-field {
  width: 100%;
  padding: 13px 16px 13px 46px;
  background: rgba(15, 25, 50, 0.6);
  border: 2px solid rgba(0, 188, 212, 0.18);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: "Space Mono", monospace;
  font-size: 13px;
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
  outline: none;
}

.input-field::placeholder {
  color: var(--text-tertiary);
  opacity: 0.55;
}

.input-field:focus {
  background: rgba(0, 188, 212, 0.06);
  border-color: var(--primary);
  box-shadow:
    0 0 25px var(--glow-primary),
    inset 0 0 12px rgba(0, 188, 212, 0.05);
}

.input-field:focus + .input-border {
  opacity: 1;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--secondary),
    transparent
  );
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 8px;
  transition: all 0.3s ease;
  z-index: 3;
}

.toggle-password:hover {
  color: var(--primary);
  text-shadow: 0 0 10px var(--glow-primary);
}

.input-hint {
  font-size: 10px;
  color: var(--text-tertiary);
  opacity: 0.65;
  letter-spacing: 0.5px;
}

.input-hint.error {
  color: var(--error);
  opacity: 1;
}
.input-hint.success {
  color: var(--success);
  opacity: 1;
}

/* ========================================
   FORÇA DE SENHA
   ======================================== */
.password-strength {
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 188, 212, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition:
    width 0.4s ease,
    background 0.4s ease;
}

.strength-fill.weak {
  background: var(--error);
  width: 25%;
  box-shadow: 0 0 8px rgba(239, 83, 80, 0.5);
}
.strength-fill.fair {
  background: var(--warning);
  width: 50%;
  box-shadow: 0 0 8px rgba(255, 167, 38, 0.5);
}
.strength-fill.good {
  background: #cddc39;
  width: 75%;
  box-shadow: 0 0 8px rgba(205, 220, 57, 0.5);
}
.strength-fill.strong {
  background: var(--success);
  width: 100%;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.strength-text {
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
}

/* ========================================
   BOTÃO REGISTRAR
   ======================================== */
.register-button {
  padding: 15px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: 10px;
  color: var(--bg-darker);
  font-family: "Audiowide", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  text-transform: uppercase;
  box-shadow: 0 0 30px var(--glow-primary);
}

.register-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left 0.5s ease;
}

.register-button:hover {
  box-shadow:
    0 0 50px var(--glow-primary),
    0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.register-button:hover::before {
  left: 100%;
}
.register-button:active {
  transform: translateY(-1px);
}

.button-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  pointer-events: none;
}

/* Botão VOLTAR PARA LOGIN */
.login-link-button {
  padding: 13px 24px;
  background: transparent;
  border: 2px solid var(--primary);
  border-radius: 10px;
  color: var(--primary);
  font-family: "Audiowide", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-transform: uppercase;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.login-link-button:hover {
  background: rgba(0, 188, 212, 0.1);
  box-shadow:
    0 0 30px var(--glow-primary),
    inset 0 0 15px rgba(0, 188, 212, 0.07);
  transform: translateY(-2px);
}

.login-link-button:active {
  transform: translateY(0);
}

/* ========================================
   DIVIDER
   ======================================== */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.divider span {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ========================================
   TERMOS
   ======================================== */
.terms {
  text-align: center;
  margin-top: 16px;
  animation: fadeIn 0.8s ease-out 0.8s both;
}

.terms p {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.terms a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.terms a:hover {
  text-decoration: underline;
  text-shadow: 0 0 10px var(--glow-primary);
}

/* ========================================
   INFO PANEL
   ======================================== */
.info-content {
  background: var(--bg-card);
  border: 2px solid rgba(0, 188, 212, 0.2);
  border-radius: 16px;
  padding: 42px 32px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(0, 188, 212, 0.08);
}

.info-content h2 {
  font-family: "Audiowide", sans-serif;
  font-size: 24px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.info-content > p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--bg-darker);
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--glow-primary);
}

.benefit-text h3 {
  font-family: "Audiowide", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: 1px;
}

.benefit-text p {
  font-size: 11px;
  color: var(--text-tertiary);
  margin: 0;
  line-height: 1.5;
}

/* ========================================
   ALERTS
   ======================================== */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

.alert {
  padding: 14px 18px;
  background: rgba(10, 14, 39, 0.95);
  border: 2px solid;
  border-radius: 10px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(12px);
  animation: slideInAlert 0.3s ease-out;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.alert.success {
  border-color: var(--success);
}
.alert.success .alert-icon {
  color: var(--success);
  text-shadow: 0 0 10px var(--success);
}

.alert.error {
  border-color: var(--error);
}
.alert.error .alert-icon {
  color: var(--error);
  text-shadow: 0 0 10px var(--error);
}

.alert.warning {
  border-color: var(--warning);
}
.alert.warning .alert-icon {
  color: var(--warning);
  text-shadow: 0 0 10px var(--warning);
}

.alert-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.alert-message {
  flex: 1;
  font-size: 13px;
}

@keyframes slideInAlert {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ========================================
   LOADING STATE
   ======================================== */
.register-button.loading {
  pointer-events: none;
  opacity: 0.75;
}
.register-button.loading .button-text {
  display: none;
}
.register-button.loading::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(5, 8, 16, 0.4);
  border-top-color: var(--bg-darker);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   RESPONSIVIDADE
   ======================================== */
@media (min-width: 1025px) {
  .info-panel {
    display: block;
  }
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
    gap: 32px;
    padding: 30px 20px;
  }
  .register-wrapper {
    max-width: 100%;
  }
  .info-panel {
    display: none;
  }
}

@media (max-width: 768px) {
  .logo-circle {
    width: 80px;
    height: 80px;
    font-size: 36px;
  }
  .logo-text {
    font-size: 32px;
    letter-spacing: 4px;
  }
  .logo-section {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 20px 16px;
  }
  .logo-circle {
    width: 68px;
    height: 68px;
    font-size: 30px;
  }
  .logo-text {
    font-size: 26px;
    letter-spacing: 3px;
  }
  .logo-subtitle {
    font-size: 9px;
    letter-spacing: 3px;
  }
  .register-form {
    gap: 14px;
  }
  .input-field {
    font-size: 13px;
  }
  .register-button,
  .login-link-button {
    font-size: 11px;
    padding: 12px 16px;
  }
  .alert-container {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}
