/**
 * Sportuz / Uztiming - Auth Pages Stylesheet (page-auth.css)
 *
 * Содержит стили страниц авторизации:
 * - Форма входа (page-login.php)
 * - Форма регистрации с переключателем ролей (page-register.php)
 * - Форма сброса пароля (page-lost-password.php)
 * - Форма установки нового пароля с проверкой надежности (page-set-password.php)
 *
 * @package sportuz
 * @version 2.0.0
 */

.auth-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 2.5rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 2rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

body.light-theme .auth-card {
  background: #ffffff;
  border-color: var(--border-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.25rem;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.75rem;
  border-radius: 0.85rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-text);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.2s ease;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

/* Role Switcher in Register */
.role-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
}

body.light-theme .role-switcher {
  background: #f1f5f9;
  border-color: var(--border-color);
}

.role-btn {
  padding: 0.65rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.role-btn.active {
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--accent-glow);
}

/* Password Strength & Rules */
.password-rules-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

body.light-theme .password-rules-box {
  background: #f8fafc;
  border-color: var(--border-color);
}

.password-rules-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.strength-meter-bar {
  width: 100%;
  height: 6px;
  background: var(--border-color);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.strength-fill {
  height: 100%;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.auth-footer-links {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.auth-footer-links a {
  color: var(--text-main);
  font-weight: 700;
}

.auth-footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}
