/* Authentication Screens CSS */

/* Welcome Screen */
.welcome-screen {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-xl);
  color: var(--text-white);
  text-align: center;
}

.welcome-logo {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  margin: 0 auto var(--space-2xl); /* MARGIN AUTO = KÖZÉPRE */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  backdrop-filter: blur(20px);
  animation: welcomePulse 2s ease-in-out infinite;
}

@keyframes welcomePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.welcome-buttons {
  width: 100%;
  max-width: 320px;
  margin: 0 auto; /* KÖZÉPRE IGAZÍTÁS */
}

.welcome-buttons .btn {
  width: 100%;
  margin-bottom: var(--space-md);
  padding: var(--space-lg);
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-welcome-primary {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-welcome-primary:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-welcome-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-welcome-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-demo {
  background: rgba(245, 158, 11, 0.2);
  color: var(--text-white);
  border: 2px solid var(--primary-orange);
  font-weight: 600;
}

.btn-demo:hover {
  background: var(--primary-orange);
  transform: translateY(-2px);
}

/* Auth Form Screens */
.auth-screen {
  background: var(--bg-primary);
  min-height: 100vh;
  padding: var(--space-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
  padding-top: var(--space-2xl);
}

.auth-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-orange));
  border-radius: var(--radius-lg);
  margin: 0 auto var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-white);
}

.auth-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.auth-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Auth Form */
.auth-form {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  max-width: 400px;
  margin: 0 auto;
}

.auth-form-group {
  margin-bottom: var(--space-lg);
}

.auth-form-label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.auth-form-label .emoji {
  margin-right: var(--space-sm);
}

.auth-form-input {
  width: 100%;
  padding: var(--space-lg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: all 0.2s ease-in-out;
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.auth-form-input::placeholder {
  color: var(--text-muted);
}

.auth-form-input.error {
  border-color: var(--error-red);
}

.auth-form-input.error:focus {
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Error Messages */
.auth-error {
  color: var(--error-red);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
}

.auth-error::before {
  content: '⚠️';
  margin-right: var(--space-sm);
}

/* Success Messages */
.auth-success {
  color: var(--success-green);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
  display: flex;
  align-items: center;
}

.auth-success::before {
  content: '✅';
  margin-right: var(--space-sm);
}

/* Password Strength Indicator */
.password-strength {
  margin-top: var(--space-sm);
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: all 0.3s ease-in-out;
  border-radius: var(--radius-sm);
}

.password-strength-bar.weak {
  width: 33%;
  background: var(--error-red);
}

.password-strength-bar.medium {
  width: 66%;
  background: var(--warning-yellow);
}

.password-strength-bar.strong {
  width: 100%;
  background: var(--success-green);
}

/* Push Notification Permission */
.push-permission {
  background: rgba(59, 130, 246, 0.05);
  border: 2px solid var(--primary-blue);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  text-align: center;
}

.push-permission-title {
  color: var(--primary-blue);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.push-permission-title::before {
  content: '🔔';
  margin-right: var(--space-sm);
}

.push-permission-text {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.push-permission-btn {
  background: var(--primary-blue);
  color: var(--text-white);
  border: none;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.push-permission-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.push-permission.granted {
  background: rgba(16, 185, 129, 0.05);
  border-color: var(--success-green);
}

.push-permission.granted .push-permission-title {
  color: var(--success-green);
}

.push-permission.granted .push-permission-title::before {
  content: '✅';
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: var(--space-xl);
}

.auth-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.auth-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Loading State for Auth */
.auth-form.loading {
  opacity: 0.7;
  pointer-events: none;
}

.auth-form.loading .btn {
  position: relative;
}

.auth-form.loading .btn::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Social Auth Buttons (if needed later) */
.social-auth {
  margin: var(--space-lg) 0;
}

.social-auth-divider {
  text-align: center;
  margin: var(--space-lg) 0;
  position: relative;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.social-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
  z-index: 1;
}

.social-auth-divider span {
  background: var(--bg-card);
  padding: 0 var(--space-md);
  position: relative;
  z-index: 2;
}

.btn-social {
  width: 100%;
  margin-bottom: var(--space-sm);
  padding: var(--space-md);
  border: 2px solid var(--border-light);
  background: var(--bg-card);
  color: var(--text-primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-social:hover {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.05);
}

.btn-social .social-icon {
  margin-right: var(--space-sm);
  font-size: 1.125rem;
}

/* Back Button for Auth Screens */
.auth-back-btn {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.auth-back-btn:hover {
  background: var(--bg-card);
  transform: scale(1.05);
}

/* Terms & Privacy Links */
.auth-legal {
  text-align: center;
  margin-top: var(--space-lg);
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-legal a {
  color: var(--primary-blue);
  text-decoration: none;
}

.auth-legal a:hover {
  text-decoration: underline;
}

/* Responsive Design for Auth */
@media (max-width: 480px) {
  .welcome-screen {
    padding: var(--space-lg);
  }
  
  .welcome-logo {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
  }
  
  .welcome-title {
    font-size: 2rem;
  }
  
  .auth-screen {
    padding: var(--space-md);
  }
  
  .auth-form {
    padding: var(--space-lg);
  }
  
  .auth-header {
    padding-top: var(--space-lg);
  }
}

/* Animation for screen transitions */
.auth-screen {
  animation: slideInFromRight 0.3s ease-out;
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.welcome-screen {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}