@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Roboto:wght@400;500;700&display=swap');

/**
 * BoxMan Tournament - Auth Pages Styles
 * Login and Registration pages with tournament theme
 *
 * @package BoxMan_Tournament
 */

 :root {
  --bm-orange: #FF8E49;
  --bm-orange-dark: #FF7D2E;
  --bm-yellow: #F7FF00;
  --bm-gold: #FFCF2E;
  --bm-dark-1: #000000;
  --bm-dark-2: #0a0a0a;
  --bm-dark-3: #1a1a1a;
  --bm-card-bg: rgba(20, 20, 20, 0.85);
  --bm-green: #00A32A;
  --bm-red: #CC0000;
  --bm-red-dark: #990000;
  --bm-red-glow: rgba(204, 0, 0, 0.6);
  --bm-white: #FFFFFF;
  --bm-gray: #CCCCCC;
  --bm-gray-dark: #999999;
  --bm-tourney-red: #CC0000;
  --bm-tourney-red-light: #FF2222;
}

/* Reset & Base */
.boxman-auth-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.boxman-auth-wrapper {
  font-family: 'Roboto', sans-serif;
  background: var(--bm-dark-1);
  color: var(--bm-white);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Parallax Stars Background */
.boxman-auth-wrapper::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(2px 2px at 20px 30px, white, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, white, transparent),
    radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 160px 120px, white, transparent),
    radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 250px 160px, white, transparent),
    radial-gradient(2px 2px at 300px 100px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 350px 60px, white, transparent),
    radial-gradient(2px 2px at 400px 140px, rgba(255,255,255,0.8), transparent);
  background-size: 450px 200px;
  background-color: var(--bm-dark-1);
  z-index: -2;
  pointer-events: none;
  animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Subtle overlay for depth with glow */
.boxman-auth-wrapper::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse at center, rgba(255, 200, 100, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 20%, rgba(255, 150, 50, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 80%, rgba(255, 180, 80, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
  z-index: -1;
  pointer-events: none;
}

/* Container */
.boxman-auth-container {
  display: flex;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  width: 100%;
  justify-content: center;
}

/* Auth Card */
.boxman-auth-card {
  flex: 1;
  max-width: 450px;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.95) 0%, rgba(15, 15, 15, 0.98) 100%);
  border: 3px solid var(--bm-tourney-red);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 
    0 0 30px rgba(204, 0, 0, 0.3),
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.boxman-auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--bm-tourney-red), transparent);
}

.boxman-auth-card-centered {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

/* Header */
.boxman-auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.boxman-auth-title {
  font-family: 'Audiowide', sans-serif;
  font-size: 28px;
  color: var(--bm-white);
  margin-bottom: 8px;
  text-shadow: 0 0 20px rgba(204, 0, 0, 0.5);
}

.boxman-auth-subtitle {
  color: var(--bm-gray-dark);
  font-size: 14px;
}

/* Messages */
.boxman-auth-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.boxman-auth-error {
  background: rgba(204, 0, 0, 0.2);
  border: 1px solid var(--bm-red);
  color: var(--bm-tourney-red-light);
}

.boxman-auth-success {
  background: rgba(0, 163, 42, 0.2);
  border: 1px solid var(--bm-green);
  color: #4CAF50;
}

/* Form */
.boxman-auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.boxman-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boxman-form-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.boxman-form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--bm-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.boxman-form-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--bm-white);
  font-size: 15px;
  font-family: 'Roboto', sans-serif;
  transition: all 0.3s ease;
}

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

.boxman-form-input:focus {
  outline: none;
  border-color: var(--bm-tourney-red);
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 15px rgba(204, 0, 0, 0.2);
}

.boxman-form-input:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* Checkbox */
.boxman-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--bm-gray);
}

.boxman-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--bm-tourney-red);
  cursor: pointer;
}

/* Links */
.boxman-link {
  color: var(--bm-gray-dark);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.boxman-link:hover {
  color: var(--bm-white);
}

.boxman-link-highlight {
  color: var(--bm-tourney-red-light);
  font-weight: 500;
}

.boxman-link-highlight:hover {
  color: var(--bm-white);
  text-decoration: underline;
}

/* Button */
.boxman-auth-button {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(180deg, var(--bm-tourney-red) 0%, var(--bm-red-dark) 100%);
  border: 2px solid var(--bm-tourney-red-light);
  border-radius: 8px;
  color: var(--bm-white);
  font-family: 'Audiowide', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 
    0 4px 15px rgba(204, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-top: 10px;
}

.boxman-auth-button:hover {
  background: linear-gradient(180deg, var(--bm-tourney-red-light) 0%, var(--bm-tourney-red) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 6px 25px rgba(204, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.boxman-auth-button:active {
  transform: translateY(0);
}

.boxman-auth-button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.boxman-auth-button-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

/* Footer */
.boxman-auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bm-gray-dark);
  font-size: 14px;
}

/* Actions for logged-in state */
.boxman-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* Decoration / Logo Side */
.boxman-auth-decoration {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boxman-auth-logo {
  text-align: center;
  position: relative;
}

.boxman-logo-text {
  font-family: 'Audiowide', sans-serif;
  font-size: 72px;
  line-height: 0.9;
  color: var(--bm-white);
  text-shadow: 
    0 0 40px rgba(204, 0, 0, 0.6),
    0 0 80px rgba(204, 0, 0, 0.4),
    0 0 120px rgba(204, 0, 0, 0.2);
  letter-spacing: 4px;
  display: block;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    text-shadow: 
      0 0 40px rgba(204, 0, 0, 0.6),
      0 0 80px rgba(204, 0, 0, 0.4),
      0 0 120px rgba(204, 0, 0, 0.2);
  }
  50% {
    text-shadow: 
      0 0 60px rgba(204, 0, 0, 0.8),
      0 0 100px rgba(204, 0, 0, 0.5),
      0 0 140px rgba(204, 0, 0, 0.3);
  }
}

/* Disabled message */
.boxman-auth-disabled {
  text-align: center;
  color: var(--bm-gray-dark);
  padding: 40px;
}

/* Responsive */
@media (max-width: 900px) {
  .boxman-auth-container {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .boxman-auth-card {
    max-width: 100%;
    width: 100%;
  }

  .boxman-auth-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .boxman-auth-wrapper {
    padding: 20px 15px;
  }

  .boxman-auth-card {
    padding: 30px 24px;
  }

  .boxman-auth-title {
    font-size: 24px;
  }

  .boxman-form-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .boxman-auth-button {
    padding: 14px 20px;
    font-size: 14px;
  }

  .boxman-form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Divider */
.boxman-auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
}

.boxman-auth-divider::before,
.boxman-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.boxman-auth-divider span {
  padding: 0 16px;
  color: var(--bm-gray-dark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Patreon Button */
.boxman-auth-button-patreon {
  background: linear-gradient(180deg, #FF424D 0%, #E63946 100%);
  border-color: #FF6B6B;
  box-shadow: 
    0 4px 15px rgba(255, 66, 77, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.boxman-auth-button-patreon:hover {
  background: linear-gradient(180deg, #FF6B6B 0%, #FF424D 100%);
  box-shadow: 
    0 6px 25px rgba(255, 66, 77, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.boxman-patreon-icon {
  flex-shrink: 0;
}

/* Hide WordPress admin bar on auth pages if needed */
.boxman-auth-wrapper ~ #wpadminbar {
  display: none;
}
