:root {
  --form-bg: #050505;
  --form-surface: #0f0f0f;
  --form-border: rgba(201, 162, 39, 0.35);
  --form-accent: #f5d047;
  --form-accent-hover: #ffea7f;
  --form-text: #ffffff;
  --form-text-muted: #d1d5e0;
  --form-error: #ff6b6b;
  --form-success: #4ade80;
  --form-glow: rgba(201, 162, 39, 0.5);
  --glass-bg: rgba(15, 15, 15, 0.9);
  --glass-border: rgba(255, 255, 255, 0.12);
}

.auth-premium-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #050505 0%, #0d1b2a 100%);
  position: relative;
  overflow: hidden;
}

.auth-premium-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(201, 162, 39, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

.auth-premium-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 48px 40px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(201, 162, 39, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.auth-premium-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--form-glow) 0%, transparent 70%);
  opacity: 0.3;
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.4; }
}

.auth-premium-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-premium-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.auth-premium-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #c9a227, #eab308);
  border-radius: 12px;
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: #0a0a0a;
}

.auth-premium-title {
  font-family: var(--font-heading, "Playfair Display", Georgia, serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--form-text);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-premium-subtitle {
  font-size: 15px;
  color: var(--form-text-muted);
  line-height: 1.6;
}

.auth-premium-form .form-group {
  margin-bottom: 24px;
}

.auth-premium-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--form-text-muted);
  margin-bottom: 8px;
}

.auth-premium-input-wrapper {
  position: relative;
}

.auth-premium-input {
  width: 100%;
  padding: 16px 20px;
  background: rgba(20, 20, 20, 0.8);
  border: 1px solid var(--form-border);
  border-radius: 12px;
  color: var(--form-text);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.auth-premium-input:focus {
  border-color: var(--form-accent);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.auth-premium-input::placeholder {
  color: var(--form-text-muted);
  opacity: 0.5;
}

.auth-premium-input.error {
  border-color: var(--form-error);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.auth-premium-input.success {
  border-color: var(--form-success);
}

.auth-premium-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--form-text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.auth-premium-toggle:hover {
  color: var(--form-text);
}

.auth-premium-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.auth-premium-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 480px) {
  .auth-premium-row {
    grid-template-columns: 1fr;
  }
  .auth-premium-card {
    padding: 32px 24px;
  }
}

.auth-premium-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
}

.auth-premium-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-premium-checkbox .checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--form-accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--form-surface);
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.3);
}

.auth-premium-checkbox input[type="checkbox"]:checked + .checkmark {
  background: var(--form-accent);
  border-color: var(--form-accent-hover);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.3);
}

.auth-premium-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  color: #000;
  font-size: 14px;
  font-weight: bold;
}

.auth-premium-checkbox span {
  font-size: 14px;
  color: var(--form-text);
  line-height: 1.5;
}

.auth-premium-checkbox a {
  color: var(--form-accent);
  text-decoration: none;
}

.auth-premium-checkbox a:hover {
  text-decoration: underline;
}

.auth-premium-submit {
  width: 100%;
  padding: 18px 24px;
  background: linear-gradient(135deg, #c9a227, #dab63d);
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.auth-premium-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(201, 162, 39, 0.35);
}

.auth-premium-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-premium-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-premium-alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-premium-alert.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--form-error);
}

.auth-premium-alert.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--form-success);
}

.auth-premium-alert svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-premium-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 14px;
  color: var(--form-text-muted);
}

.auth-premium-footer a {
  color: var(--form-accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-premium-footer a:hover {
  color: var(--form-accent-hover);
}

.auth-premium-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.auth-premium-link {
  color: var(--form-accent);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-premium-link:hover {
  color: var(--form-accent-hover);
}

.form-decorator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--form-accent), var(--form-success), var(--form-accent));
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.form-decorator.active {
  opacity: 1;
}

.password-strength-premium {
  margin-top: 12px;
}

.strength-bar-premium {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.strength-fill-premium {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s, background 0.4s;
  background: var(--form-error);
}

.strength-fill-premium.medium { background: #f59e0b; }
.strength-fill-premium.good { background: #eab308; }
.strength-fill-premium.strong { background: var(--form-success); }

.strength-header-premium {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.strength-label-premium {
  font-size: 12px;
  font-weight: 600;
}

.requirements-premium {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.req-item-premium {
  font-size: 11px;
  color: var(--form-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.req-item-premium.met {
  color: var(--form-success);
}

.req-icon-premium {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.req-item-premium.met .req-icon-premium {
  background: var(--form-success);
  color: #fff;
  transform: scale(1);
}

.req-item-premium:not(.met) .req-icon-premium {
  background: #334155;
  color: var(--form-text-muted);
  transform: scale(0.85);
}

.confirm-feedback-premium {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
}

.confirm-feedback-premium.match {
  color: var(--form-success);
}

.confirm-feedback-premium.nomatch {
  color: var(--form-error);
}

.input-hint-premium {
  font-size: 11px;
  color: var(--form-text-muted);
  margin-top: 6px;
}

.loading-spinner-premium {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 10, 10, 0.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-loader-premium {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.form-loader-premium.active {
  opacity: 1;
  visibility: visible;
}

.loader-content-premium {
  text-align: center;
  color: var(--form-text);
}

.loader-brand-premium {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #c9a227, #eab308);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #0a0a0a;
}