/* =============================================
   QUEEN COURT V5 — Login Page Styles
   ============================================= */

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  overflow: hidden;
}

/* Background Court Lines */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 60%, #1a1a2e 0%, #0a0a0f 70%);
  overflow: hidden;
}

.court-lines {
  position: absolute;
  inset: 0;
  opacity: 0.07;
}

.line {
  position: absolute;
  border: 1.5px solid var(--qc-gold);
}

.line-center {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  border-width: 0 0 0 1.5px;
}

.line-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.line-left {
  left: 10%;
  top: 0;
  bottom: 0;
  width: 0;
  border-width: 0 0 0 1.5px;
}

.line-right {
  right: 10%;
  top: 0;
  bottom: 0;
  width: 0;
  border-width: 0 0 0 1.5px;
}

.line-three-left {
  width: 200px;
  height: 380px;
  left: 10%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 0 200px 200px 0;
  border-left: none;
}

.line-three-right {
  width: 200px;
  height: 380px;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 200px 0 0 200px;
  border-right: none;
}

/* Login Wrapper */
.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 20px 16px;
  margin: auto;
}

/* Login Card */
.login-card {
  background: rgba(17, 17, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 200, 66, 0.12);
  border-radius: var(--radius-xl);
  padding: 36px 28px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(24px);
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Brand */
.brand {
  text-align: center;
  margin-bottom: 32px;
}

.crown-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(245,200,66,0.6));
  animation: crownFloat 3s ease-in-out infinite;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 34px;
  letter-spacing: 5px;
  color: var(--qc-white);
  line-height: 1;
  display: inline-block;
}

.brand-version {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--qc-gold);
  margin-top: 4px;
  text-transform: uppercase;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--qc-white-40);
  text-transform: uppercase;
}

.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  color: var(--qc-white-40);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.field-wrap input {
  width: 100%;
  background: var(--qc-white-10);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 13px 44px 13px 40px;
  color: var(--qc-white);
  font-size: 14px;
  font-weight: 400;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.field-wrap input::placeholder {
  color: rgba(255,255,255,0.2);
}

.field-wrap input:focus {
  border-color: rgba(245, 200, 66, 0.4);
  background: rgba(245, 200, 66, 0.04);
  box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.08);
}

.toggle-password {
  position: absolute;
  right: 14px;
  color: var(--qc-white-40);
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}

.toggle-password:hover { color: var(--qc-white-80); }

/* Error */
.error-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 74, 74, 0.1);
  border: 1px solid rgba(240, 74, 74, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #f87171;
  animation: shakeIn 0.4s ease;
}

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

/* Login Button */
.btn-login {
  width: 100%;
  padding: 15px;
  background: var(--qc-gold);
  color: var(--qc-black);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 3px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.btn-login::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--qc-gold-light), var(--qc-orange));
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-login:hover::before { opacity: 1; }
.btn-login:hover { transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.btn-login:active { transform: translateY(0); }

.btn-text, .btn-loader {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.login-footer {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  margin-top: 20px;
  letter-spacing: 0.5px;
}
