@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,400&display=swap');

:root {
  --primary: #f59e0b; /* Amber/Gold */
  --primary-glow: rgba(245, 158, 11, 0.5);
  --secondary: #6366f1; /* Indigo */
  --secondary-glow: rgba(99, 102, 241, 0.5);
  --bg-color: #0b0f19; /* Very dark slate/navy */
  --text-dark: #f8fafc;
  --text-light: #94a3b8;
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Premium Background */
.bg-gradient {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -3;
}

/* Ocultar orbes ya que usaremos el fondo nuevo */
.bg-orb {
    display: none;
}
.orb-1 {
    width: 300px; height: 300px;
    background: var(--secondary-glow);
    top: -100px; left: -100px;
}
.orb-2 {
    width: 400px; height: 400px;
    background: var(--primary-glow);
    bottom: -150px; right: -150px;
    animation-delay: -5s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Floating Decorations - Hidden on very small screens for cleanliness */
.decor {
  position: fixed;
  pointer-events: none;
  user-select: none;
  animation: float 6s ease-in-out infinite;
  z-index: -1;
  opacity: 0.9;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .decor {
        display: none !important;
    }
}

@keyframes float {
  0% { transform: translateY(0) rotate(var(--rot)); }
  50% { transform: translateY(-20px) rotate(calc(var(--rot) + 10deg)); }
  100% { transform: translateY(0) rotate(var(--rot)); }
}

.container {
  width: 100%;
  max-width: 420px;
  padding: 3rem 2.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 1;
  text-align: center;
  position: relative;
  margin: 1.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--primary);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.1;
}

h1 .highlight {
    background: linear-gradient(135deg, #fcd34d, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

p.subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
}

.form-group input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 1rem;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    width: 20px;
    height: 20px;
    transition: color 0.3s ease;
}

.form-group input:focus {
  border-color: var(--secondary);
  background: rgba(99, 102, 241, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group input:focus + .input-icon {
    color: var(--secondary);
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--secondary), #4338ca);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.btn-submit:hover::before {
    left: 150%;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.5);
}

.btn-submit:active {
    transform: translateY(1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.message {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  display: none;
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}
.message.success {
  color: #34d399;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.message.error {
  color: #f87171;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Success state */
.success-container {
    display: none;
    text-align: center;
}

.success-container.active {
    display: block;
    animation: scaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.form-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-container.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

@keyframes scaleUp {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

.confetti-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: bounceIcon 2s ease infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Make sure mobile is fine */
@media (max-width: 480px) {
    .container {
        padding: 2.5rem 1.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        margin: 1rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
}

/* ADMIN PANEL STYLES */
.admin-container {
    max-width: 800px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    color: var(--primary);
    font-weight: 600;
}

td {
    color: #cbd5e1;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
