/* ============================================================
   PLAYER-AUTH-MODERN.CSS — Ayyıldız Spor Auth Pages
   Modern, premium auth experience
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --dark-900: #060d1e;
  --dark-800: #0c1425;
  --dark-700: #141f38;
  --dark-600: #1a2a47;
  --red: #c1121f;
  --red-light: #ff4d5e;
  --red-glow: rgba(193,18,31,0.35);
  --gold: #d4af37;
  --cyan: #22b8c7;
  --green: #16a34a;
  --white-88: rgba(255,255,255,0.88);
  --white-70: rgba(255,255,255,0.70);
  --white-45: rgba(255,255,255,0.45);
  --white-12: rgba(255,255,255,0.12);
  --white-06: rgba(255,255,255,0.06);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-card: 0 20px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 0 40px var(--red-glow);
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ========== HERO SECTION ========== */
.auth-hero {
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--dark-900), var(--dark-800));
  overflow: hidden;
  padding: 2.5rem 1rem 2rem;
}

.auth-hero .container {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(193,18,31,0.15), transparent 60%);
  pointer-events: none;
}

.auth-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.6;
}

.auth-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(193,18,31,0.25), transparent 70%);
  top: -200px;
  right: -100px;
  animation: orbFloat 20s ease-in-out infinite;
}

.auth-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(34,184,199,0.20), transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  animation: fadeUp 0.8s ease both;
}

.auth-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, rgba(193,18,31,0.25), rgba(193,18,31,0.10));
  border: 1px solid rgba(193,18,31,0.35);
  border-radius: 50px;
  color: var(--white-88);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.auth-hero-badge svg {
  color: var(--red);
}

.auth-hero-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  background: linear-gradient(135deg, #fff, rgba(255,255,255,0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.auth-hero-desc {
  font-size: 0.95rem;
  color: var(--white-70);
  margin: 0;
  line-height: 1.6;
}

/* ========== FORM SECTION ========== */
.auth-form-section {
  padding: 3rem 1rem 5rem;
  min-height: calc(100vh - 380px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.auth-form-section .container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.auth-form-card {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(145deg, var(--dark-800), var(--dark-700));
  border: 1px solid var(--white-12);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  animation: fadeUp 0.7s 0.2s ease both;
}

.auth-form-card-narrow {
  max-width: 480px;
}

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

/* Logo */
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(193,18,31,0.4));
}

/* Icon (for forgot/reset pages) */
.auth-icon {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-icon svg {
  color: var(--red);
  filter: drop-shadow(0 0 10px var(--red-glow));
}

/* Welcome */
.auth-welcome {
  text-align: center;
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.auth-welcome svg {
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.auth-welcome p {
  color: var(--white-88);
  font-size: 1rem;
  margin: 0;
}

.auth-welcome strong {
  color: #fff;
  font-weight: 700;
}

/* Form Header */
.auth-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-form-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
}

.auth-form-header p {
  font-size: 0.95rem;
  color: var(--white-70);
  line-height: 1.6;
  margin: 0;
}

/* Alert */
.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.auth-alert svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.auth-alert-error {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fca5a5;
}

.auth-alert-error svg {
  color: #ef4444;
}

.auth-alert-success {
  background: rgba(22,163,74,0.15);
  border: 1px solid rgba(22,163,74,0.35);
  color: #86efac;
}

.auth-alert-success svg {
  color: var(--green);
}

/* Form */
.auth-form {
  margin-bottom: 2rem;
}

.auth-form-group {
  margin-bottom: 1.5rem;
}

.auth-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-88);
  margin-bottom: 0.75rem;
}

.auth-label svg {
  color: var(--red);
}

.auth-input {
  width: 100%;
  padding: 0.875rem 1.125rem;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--white-12);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.auth-input::placeholder {
  color: var(--white-45);
}

.auth-input:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(193,18,31,0.15);
}

.auth-input-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--white-45);
  line-height: 1.4;
}

/* Password Wrapper */
.auth-password-wrapper {
  position: relative;
}

.auth-password-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--white-45);
  cursor: pointer;
  transition: color 0.2s;
}

.auth-password-toggle:hover {
  color: var(--white-88);
}

/* Password Strength */
.auth-password-strength {
  margin-top: 0.75rem;
}

.strength-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-fill {
  height: 100%;
  width: 0;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.strength-fill[data-strength="1"] { width: 25%; background: #ef4444; }
.strength-fill[data-strength="2"] { width: 50%; background: #f59e0b; }
.strength-fill[data-strength="3"] { width: 75%; background: #eab308; }
.strength-fill[data-strength="4"] { width: 100%; background: #22c55e; }

.strength-text {
  font-size: 0.85rem;
  color: var(--white-45);
}

.strength-text span {
  font-weight: 600;
}

/* Requirements */
.auth-requirements {
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.auth-requirements p {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-88);
  margin: 0 0 0.75rem;
}

.auth-requirements ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-requirements li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--white-70);
  margin-bottom: 0.5rem;
}

.auth-requirements li:last-child {
  margin-bottom: 0;
}

.auth-requirements li svg {
  color: var(--white-45);
  transition: color 0.2s;
}

.auth-requirements li.met {
  color: #86efac;
}

.auth-requirements li.met svg {
  color: var(--green);
}

/* Submit Button */
.auth-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--red), var(--red-light));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(193,18,31,0.35);
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(193,18,31,0.45);
}

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

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-submit-btn svg {
  flex-shrink: 0;
}

/* Links */
.auth-links {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--white-12);
  margin-bottom: 1.5rem;
}

.auth-link-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red-light);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link-primary:hover {
  color: #fff;
}

.auth-link-primary svg {
  flex-shrink: 0;
}

.auth-link-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-70);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-link-secondary:hover {
  color: #fff;
}

.auth-link-secondary strong {
  color: var(--red-light);
  font-weight: 600;
}

.auth-link-secondary svg {
  flex-shrink: 0;
}

/* Back Link */
.auth-back-link {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--white-12);
}

/* Help */
.auth-help {
  padding: 1.25rem;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--white-12);
}

.auth-help-text {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--white-70);
  line-height: 1.6;
  margin: 0 0 1rem;
}

.auth-help-text svg {
  flex-shrink: 0;
  color: var(--cyan);
  margin-top: 0.1rem;
}

.auth-help a {
  display: block;
  text-align: center;
  color: var(--white-70);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-help a:hover {
  color: #fff;
}

/* Info Box */
.auth-info-box {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(34,184,199,0.10);
  border: 1px solid rgba(34,184,199,0.25);
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
}

.auth-info-box svg {
  flex-shrink: 0;
  color: var(--cyan);
  margin-top: 0.1rem;
}

.auth-info-box strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white-88);
  margin-bottom: 0.25rem;
}

.auth-info-box p {
  font-size: 0.85rem;
  color: var(--white-70);
  line-height: 1.5;
  margin: 0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 680px) {
  .auth-hero {
    min-height: 320px;
    padding: 3rem 1rem 2rem;
  }

  .auth-hero-title {
    font-size: 2rem;
  }

  .auth-form-card {
    padding: 2rem 1.5rem;
  }

  .auth-form-section {
    padding: 2rem 1rem 3rem;
  }
}

@media (max-width: 375px) {
  .auth-form-card {
    padding: 1.5rem 1.25rem;
  }

  .auth-submit-btn {
    font-size: 0.95rem;
    padding: 0.875rem 1.25rem;
  }
}
