/* ========================================
   JARVIS STYLE - Dark Tech Login Theme
   ======================================== */

/* Global Reset */
.jarvis-login-body *,
.jarvis-login-body *::before,
.jarvis-login-body *::after {
  box-sizing: border-box;
}

/* 로딩 오버레이 */
.jarvis-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 20, 40, 0.95);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: wait;
  user-select: none;
}

.jarvis-loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.jarvis-loading-content {
  text-align: center;
  color: #00d4ff;
}

.jarvis-loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(0, 212, 255, 0.2);
  border-top: 3px solid #00d4ff;
  border-radius: 50%;
  animation: jarvis-spin 1s linear infinite;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

@keyframes jarvis-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* JARVIS 배경 */
body.jarvis-login-body {
  background: linear-gradient(135deg, #0a0f1a 0%, #0d1929 50%, #0a1628 100%);
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

.jarvis-login-container {
  animation: jarvis-fadeInUp 0.8s ease-out;
}

@keyframes jarvis-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 입력 필드 스타일 */
.jarvis-form-input {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 20, 40, 0.6);
  color: #e0f7ff;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  box-sizing: border-box;
}

.jarvis-form-input::placeholder {
  color: rgba(0, 212, 255, 0.5);
}

.jarvis-form-input:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), inset 0 0 20px rgba(0, 212, 255, 0.1);
  border-color: #00d4ff;
  outline: none;
}

/* 로그인 카드 */
.jarvis-login-card {
  backdrop-filter: blur(20px);
  background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(15, 35, 60, 0.85) 100%);
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow:
    0 0 60px rgba(0, 212, 255, 0.15),
    inset 0 0 60px rgba(0, 212, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
}

/* 로고 아이콘 플로팅 */
.jarvis-floating-icon {
  animation: jarvis-float 3s ease-in-out infinite;
}

@keyframes jarvis-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* 그라디언트 텍스트 */
.jarvis-gradient-text {
  background: linear-gradient(135deg, #00d4ff 0%, #00a3cc 50%, #0099ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 글로우 텍스트 */
.jarvis-glow-text {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
}

/* 탭 버튼 */
.jarvis-tab-button {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: rgba(0, 212, 255, 0.6);
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
}

.jarvis-tab-button:hover {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
}

.jarvis-tab-button.active {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(0, 150, 200, 0.3) 100%);
  border-color: #00d4ff;
  color: #00d4ff;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3), inset 0 0 15px rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

/* 로그인 버튼 */
.jarvis-login-btn {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.8) 0%, rgba(0, 150, 200, 0.9) 100%);
  border: 1px solid rgba(0, 212, 255, 0.5);
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.jarvis-login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4), 0 0 20px rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 230, 255, 0.9) 0%, rgba(0, 180, 220, 1) 100%);
}

.jarvis-login-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* HEX 그리드 배경 패턴 */
.jarvis-hex-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(0, 212, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.03) 87.5%, rgba(0, 212, 255, 0.03)),
    linear-gradient(150deg, rgba(0, 212, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.03) 87.5%, rgba(0, 212, 255, 0.03)),
    linear-gradient(30deg, rgba(0, 212, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.03) 87.5%, rgba(0, 212, 255, 0.03)),
    linear-gradient(150deg, rgba(0, 212, 255, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(0, 212, 255, 0.03) 87.5%, rgba(0, 212, 255, 0.03));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
  animation: jarvis-hexMove 20s linear infinite;
  pointer-events: none;
}

@keyframes jarvis-hexMove {
  0% { background-position: 0 0, 0 0, 40px 70px, 40px 70px; }
  100% { background-position: 80px 140px, 80px 140px, 120px 210px, 120px 210px; }
}

/* 파티클 (JARVIS 스타일) */
.jarvis-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #00d4ff;
  border-radius: 50%;
  box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff;
  animation: jarvis-particlesFloat 15s infinite linear;
  pointer-events: none;
}

@keyframes jarvis-particlesFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

/* 스캔 라인 효과 */
.jarvis-scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  animation: jarvis-scanLine 4s linear infinite;
  pointer-events: none;
}

@keyframes jarvis-scanLine {
  0% { top: -10%; }
  100% { top: 110%; }
}

/* 원형 글로우 배경 */
.jarvis-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: jarvis-orbPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes jarvis-orbPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.1); }
}

/* 라벨 스타일 */
.jarvis-form-label {
  color: rgba(0, 212, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* 로고 컨테이너 */
.jarvis-logo-container {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(0, 40, 80, 0.8) 0%, rgba(0, 60, 100, 0.6) 100%);
  border: 2px solid rgba(0, 212, 255, 0.4);
  box-shadow:
    0 0 40px rgba(0, 212, 255, 0.3),
    inset 0 0 30px rgba(0, 212, 255, 0.1);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* 에러 메시지 JARVIS 스타일 */
.jarvis-error-message {
  background: rgba(255, 50, 50, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.5);
  box-shadow: 0 0 20px rgba(255, 50, 50, 0.2);
  padding: 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}

.jarvis-error-message p {
  color: #fca5a5;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 체크박스 커스텀 */
.jarvis-checkbox {
  accent-color: #00d4ff;
}

/* 링크 호버 */
.jarvis-link {
  color: rgba(0, 212, 255, 0.7);
  transition: all 0.3s ease;
  text-decoration: none;
}

.jarvis-link:hover {
  color: #00d4ff;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* 비밀번호 토글 버튼 */
.jarvis-password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(0, 212, 255, 0.5);
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0;
}

.jarvis-password-toggle:hover {
  color: #00d4ff;
}

/* 폼 그룹 */
.jarvis-form-group {
  margin-bottom: 1.25rem;
}

.jarvis-form-group.relative {
  position: relative;
}

/* 옵션 영역 */
.jarvis-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.jarvis-remember-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(0, 212, 255, 0.7);
  font-weight: 500;
  cursor: pointer;
}

/* 하단 링크 영역 */
.jarvis-footer-links {
  margin-top: 1.5rem;
  text-align: center;
}

.jarvis-footer-links p {
  font-size: 0.875rem;
  color: rgba(0, 212, 255, 0.6);
  margin: 0;
}

.jarvis-footer-links a {
  color: #00d4ff;
  font-weight: 700;
  margin-left: 0.25rem;
}

/* 타이틀 스타일 */
.jarvis-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  margin-bottom: 0.5rem;
}

.jarvis-subtitle {
  color: rgba(0, 212, 255, 0.6);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* 홈 링크 */
.jarvis-home-link {
  margin-top: 2rem;
  text-align: center;
}

.jarvis-home-link a {
  color: rgba(0, 212, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* 로딩 스피너 in 버튼 */
.jarvis-btn-spinner {
  animation: jarvis-spin 1s linear infinite;
}

/* SVG 아이콘 스타일 */
.jarvis-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jarvis-icon-lg {
  width: 2.5rem;
  height: 2.5rem;
}

/* ========================================
   Purple Theme (Admin)
   ======================================== */

.jarvis-particle-purple {
  background: #a855f7;
  box-shadow: 0 0 10px #a855f7, 0 0 20px #a855f7;
}

.jarvis-logo-container-purple {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow:
    0 0 40px rgba(139, 92, 246, 0.3),
    inset 0 0 30px rgba(139, 92, 246, 0.1);
}

.jarvis-glow-text-purple {
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8), 0 0 20px rgba(168, 85, 247, 0.6), 0 0 30px rgba(168, 85, 247, 0.4);
}

.jarvis-subtitle-purple {
  color: rgba(168, 85, 247, 0.6);
}

.jarvis-login-card-purple {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow:
    0 0 60px rgba(139, 92, 246, 0.15),
    inset 0 0 60px rgba(139, 92, 246, 0.05);
}

.jarvis-form-label-purple {
  color: rgba(168, 85, 247, 0.8);
}

.jarvis-form-input-purple {
  border-color: rgba(139, 92, 246, 0.3);
}

.jarvis-form-input-purple:focus {
  border-color: #a855f7;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), inset 0 0 20px rgba(139, 92, 246, 0.1);
}

.jarvis-password-toggle-purple {
  color: rgba(168, 85, 247, 0.5);
}

.jarvis-password-toggle-purple:hover {
  color: #a855f7;
}

.jarvis-remember-label-purple {
  color: rgba(168, 85, 247, 0.7);
}

.jarvis-login-btn-purple {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.8) 0%, rgba(109, 40, 217, 0.9) 100%);
  border-color: rgba(139, 92, 246, 0.5);
}

.jarvis-login-btn-purple:hover {
  box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4), 0 0 20px rgba(139, 92, 246, 0.3);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.9) 0%, rgba(139, 92, 246, 1) 100%);
}

.jarvis-link-purple {
  color: rgba(168, 85, 247, 0.7);
}

.jarvis-link-purple:hover {
  color: #a855f7;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.jarvis-loading-spinner-purple {
  border-color: rgba(139, 92, 246, 0.2);
  border-top-color: #a855f7;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

/* ========================================
   Blue Theme (Unified Login)
   ======================================== */

.jarvis-particle-blue {
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6, 0 0 20px #3b82f6;
}

.jarvis-logo-container-blue {
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow:
    0 0 40px rgba(59, 130, 246, 0.3),
    inset 0 0 30px rgba(59, 130, 246, 0.1);
}

.jarvis-glow-text-blue {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8), 0 0 20px rgba(59, 130, 246, 0.6), 0 0 30px rgba(59, 130, 246, 0.4);
}

.jarvis-subtitle-blue {
  color: rgba(59, 130, 246, 0.6);
}

.jarvis-login-card-blue {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow:
    0 0 60px rgba(59, 130, 246, 0.15),
    inset 0 0 60px rgba(59, 130, 246, 0.05);
}

.jarvis-form-label-blue {
  color: rgba(59, 130, 246, 0.8);
}

.jarvis-form-input-blue {
  border-color: rgba(59, 130, 246, 0.3);
}

.jarvis-form-input-blue:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.jarvis-password-toggle-blue {
  color: rgba(59, 130, 246, 0.5);
}

.jarvis-password-toggle-blue:hover {
  color: #3b82f6;
}

.jarvis-remember-label-blue {
  color: rgba(59, 130, 246, 0.7);
}

.jarvis-login-btn-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(37, 99, 235, 0.9) 100%);
  border-color: rgba(59, 130, 246, 0.5);
}

.jarvis-login-btn-blue:hover {
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4), 0 0 20px rgba(59, 130, 246, 0.3);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.9) 0%, rgba(59, 130, 246, 1) 100%);
}

.jarvis-link-blue {
  color: rgba(59, 130, 246, 0.7);
}

.jarvis-link-blue:hover {
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.jarvis-loading-spinner-blue {
  border-color: rgba(59, 130, 246, 0.2);
  border-top-color: #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.jarvis-footer-links-blue p {
  color: rgba(59, 130, 246, 0.6);
}

.jarvis-footer-links-blue a {
  color: #3b82f6;
}

/* ========================================
   Green Theme (Registration)
   ======================================== */

.jarvis-particle-green {
  background: #10b981;
  box-shadow: 0 0 10px #10b981, 0 0 20px #10b981;
}

.jarvis-logo-container-green {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow:
    0 0 40px rgba(16, 185, 129, 0.3),
    inset 0 0 30px rgba(16, 185, 129, 0.1);
}

.jarvis-glow-text-green {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.8), 0 0 20px rgba(16, 185, 129, 0.6), 0 0 30px rgba(16, 185, 129, 0.4);
}

.jarvis-subtitle-green {
  color: rgba(16, 185, 129, 0.6);
}

.jarvis-login-card-green {
  border-color: rgba(16, 185, 129, 0.2);
  box-shadow:
    0 0 60px rgba(16, 185, 129, 0.15),
    inset 0 0 60px rgba(16, 185, 129, 0.05);
}

.jarvis-form-label-green {
  color: rgba(16, 185, 129, 0.8);
}

.jarvis-form-input-green {
  border-color: rgba(16, 185, 129, 0.3);
}

.jarvis-form-input-green:focus {
  border-color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3), inset 0 0 20px rgba(16, 185, 129, 0.1);
}

.jarvis-password-toggle-green {
  color: rgba(16, 185, 129, 0.5);
}

.jarvis-password-toggle-green:hover {
  color: #10b981;
}

.jarvis-remember-label-green {
  color: rgba(16, 185, 129, 0.7);
}

.jarvis-login-btn-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.8) 0%, rgba(5, 150, 105, 0.9) 100%);
  border-color: rgba(16, 185, 129, 0.5);
}

.jarvis-login-btn-green:hover {
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.9) 0%, rgba(16, 185, 129, 1) 100%);
}

.jarvis-link-green {
  color: rgba(16, 185, 129, 0.7);
}

.jarvis-link-green:hover {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.jarvis-loading-spinner-green {
  border-color: rgba(16, 185, 129, 0.2);
  border-top-color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
}

.jarvis-footer-links-green p {
  color: rgba(16, 185, 129, 0.6);
}

.jarvis-footer-links-green a {
  color: #10b981;
}

/* Role Selection Cards for Registration */
.jarvis-role-selector {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.jarvis-role-card {
  flex: 1;
  padding: 1.25rem;
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.75rem;
  background: rgba(0, 20, 40, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.jarvis-role-card:hover {
  border-color: rgba(16, 185, 129, 0.5);
  background: rgba(16, 185, 129, 0.1);
  transform: translateY(-2px);
}

.jarvis-role-card.selected {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.jarvis-role-card input[type="radio"] {
  display: none;
}

.jarvis-role-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.jarvis-role-title {
  color: #10b981;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.jarvis-role-desc {
  color: rgba(16, 185, 129, 0.6);
  font-size: 0.75rem;
}
