:root {
  --bg: #0a0a0a;
  --yellow: #ffd400;
  --yellow-soft: #ffeb3b;
  --text: #e6e6e6;
  --danger: #ff3b3b;
}
* {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.container {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: rgba(0,0,0,0.6);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 16px var(--yellow), 0 0 40px rgba(255, 212, 0, 0.5);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  padding: 28px;
}
.logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--yellow);
  box-shadow: 0 0 14px var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--yellow-soft);
  margin: 0 auto 12px auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.title {
  text-align: center;
  margin: 8px 0 20px 0;
  color: var(--yellow-soft);
  text-shadow: 0 0 8px rgba(255, 235, 59, 0.5);
  letter-spacing: 0.6px;
}
.form {
  display: grid;
  gap: 14px;
}
.field {
  display: grid;
  gap: 8px;
}
label {
  font-size: 14px;
  color: var(--yellow-soft);
}
input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255, 212, 0, 0.65);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  outline: none;
  box-shadow: 0 0 10px rgba(255, 212, 0, 0.35) inset, 0 0 12px rgba(255, 212, 0, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease;
}
input::placeholder {
  color: #c9c9c9;
}
input:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 212, 0, 0.6);
  transform: translateY(-1px);
}
.btn {
  width: 100%;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  box-shadow: 0 0 14px var(--yellow), 0 0 26px rgba(255, 212, 0, 0.6);
  transition: filter 0.2s ease, transform 0.08s ease;
}
.btn:hover {
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(1px);
}
.links {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.link {
  color: var(--yellow-soft);
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255, 235, 59, 0.4);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.link:hover {
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 212, 0, 0.8);
}
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  
  .logo {
    width: 56px;
    height: 56px;
    font-size: 18px;
  }
  
  .title {
    font-size: 24px;
    margin: 8px 0 16px 0;
  }
  
  .form {
    gap: 12px;
  }
  
  input {
    padding: 11px 12px;
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  .btn, .btn-google {
    padding: 11px 16px;
    font-size: 15px;
  }
  
  .links {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .link {
    font-size: 14px;
  }
  
  .divider {
    margin: 16px 0 12px 0;
    font-size: 12px;
  }
  
  .btn-google {
    gap: 10px;
    margin-bottom: 12px;
  }
  
  .message {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 12px;
  }
  
  .card {
    padding: 20px 16px;
  }
  
  .logo {
    width: 48px;
    height: 48px;
    font-size: 16px;
  }
  
  .title {
    font-size: 22px;
  }
  
  input {
    padding: 10px;
  }
  
  .btn, .btn-google {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .btn-google svg {
    width: 16px;
    height: 16px;
  }
}
.message {
  text-align: center;
  margin-top: 15px;
  font-size: 0.9rem;
  min-height: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.message.show {
  opacity: 1;
}
.message.error {
  color: var(--danger);
}
.message.success {
  color: #23d366;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 16px 0;
  color: rgba(255, 235, 59, 0.6);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 212, 0, 0.3);
}

.divider span {
  padding: 0 12px;
}

.btn-google {
  width: 100%;
  background: #fff;
  color: #3c4043;
  font-weight: 600;
  font-size: 14px;
  border: 2px solid rgba(255, 212, 0, 0.4);
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 0 10px rgba(255, 212, 0, 0.3);
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: var(--yellow);
  box-shadow: 0 0 16px rgba(255, 212, 0, 0.5);
  transform: translateY(-1px);
}

.btn-google:active {
  transform: translateY(0);
}

.btn-google svg {
  flex-shrink: 0;
}
