/* Ring Game Login Styles */

#ring-login-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: radial-gradient(circle at 50% 40%, #061122 0%, #020611 60%, #000207 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #e2f1ff;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#ring-login-overlay.authorized {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
  visibility: hidden;
}

#ring-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.ring-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(2, 6, 17, 0) 30%, rgba(1, 3, 10, 0.6) 70%, rgba(0, 2, 8, 0.95) 100%);
  pointer-events: none;
  z-index: 2;
}

.ring-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 240, 255, 0.015) 0px,
    rgba(0, 240, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 3;
}

.ring-login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 440px;
  margin: 1.5rem;
  padding: 2.5rem;
  background: rgba(7, 20, 38, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 16px;
  box-shadow: 
    0 0 50px rgba(0, 240, 255, 0.12),
    0 25px 60px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 0 20px rgba(0, 240, 255, 0.05);
  animation: cardFloat 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Sci-fi HUD corner brackets */
.ring-login-card::before,
.ring-login-card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #00f0ff;
  pointer-events: none;
}
.ring-login-card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #00f0ff;
  border-left: 2px solid #00f0ff;
  border-top-left-radius: 16px;
}
.ring-login-card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #00f0ff;
  border-right: 2px solid #00f0ff;
  border-bottom-right-radius: 16px;
}

@keyframes cardFloat {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ring-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #00f0ff;
  margin-bottom: 1.25rem;
}

.ring-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ring-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ring-title-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6), inset 0 0 8px rgba(0, 240, 255, 0.4);
  position: relative;
  flex-shrink: 0;
}
.ring-title-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -5px;
  right: -5px;
  height: 2px;
  background: #00f0ff;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 6px #00f0ff;
}

.ring-subtitle {
  font-size: 0.88rem;
  color: #8da4be;
  margin: 0 0 1.75rem 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.ring-form-group {
  margin-bottom: 1.25rem;
}

.ring-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7996b5;
  margin-bottom: 0.45rem;
}

.ring-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ring-input {
  width: 100%;
  padding: 0.85rem 1rem;
  padding-right: 2.75rem;
  background: rgba(3, 12, 26, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.25s ease;
  outline: none;
  box-sizing: border-box;
}

.ring-input:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35), inset 0 0 10px rgba(0, 240, 255, 0.1);
  background: rgba(4, 18, 38, 0.9);
}

.ring-input-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: #6482a0;
  cursor: pointer;
  padding: 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.ring-input-toggle:hover {
  color: #00f0ff;
}

.ring-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  color: #8da4be;
}

.ring-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.ring-checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 4px;
  background: rgba(4, 15, 30, 0.8);
  outline: none;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.ring-checkbox:checked {
  background: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.ring-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: #020611;
  font-size: 11px;
  font-weight: 900;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-btn {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(135deg, #00d2ff 0%, #0077ff 100%);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(0, 210, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.ring-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 210, 255, 0.6), 0 5px 15px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

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

.ring-btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: btnShine 4s infinite;
}

@keyframes btnShine {
  0% { left: -100%; }
  25%, 100% { left: 200%; }
}

.ring-error-msg {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 59, 48, 0.15);
  border: 1px solid rgba(255, 59, 48, 0.4);
  border-radius: 6px;
  font-size: 0.82rem;
  color: #ff6b6b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.ring-status-success {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  background: rgba(48, 209, 88, 0.15);
  border: 1px solid rgba(48, 209, 88, 0.4);
  border-radius: 6px;
  font-size: 0.82rem;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ring-footer-meta {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #516e8c;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Launcher lock terminal button */
.ring-lock-btn {
  position: fixed;
  top: 1rem;
  right: 1.5rem;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: rgba(5, 17, 34, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  color: #8da4be;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.ring-lock-btn:hover {
  color: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

