/*============================================
  FitElite Gym - Authentication Forms Styles
  Author: Web Engineering Team
  Year: 2025
============================================*/

:root {
  --primary-color: #ff4757;
  --primary-dark: #e73c4e;
  --secondary-color: #2ed573;
  --dark-bg: #1e1e2e;
  --text-light: #ffffff;
  --text-gray: #7f8c8d;
  --gradient-primary: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-wrapper {
  width: 100%;
  max-width: 1200px;
}

.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  min-height: 600px;
}

/* Left Side */
.auth-left {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.brand {
  position: relative;
  z-index: 2;
}

.brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 700;
  transition: 0.3s ease;
}

.brand a:hover {
  transform: translateX(5px);
}

.brand i {
  font-size: 2rem;
}

.brand strong {
  color: var(--text-light);
}

.auth-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-content h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.auth-content p {
  font-size: 1.125rem;
  line-height: 1.6;
  opacity: 0.9;
}

.auth-features {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-features .feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
}

.auth-features .feature i {
  font-size: 1.5rem;
}

.auth-features .feature span {
  font-weight: 500;
}

/* Right Side - Form */
.auth-right {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.form-container {
  width: 100%;
  max-width: 450px;
}

.form-container h2 {
  font-size: 2rem;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.subtitle {
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--dark-bg);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group label i {
  color: var(--primary-color);
  font-size: 1rem;
}

.form-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255,71,87,0.1);
}

.form-group input.error {
  border-color: #ff4757;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 3rem;
}

.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 0.5rem;
  transition: 0.3s ease;
}

.toggle-password:hover {
  color: var(--primary-color);
}

.error-message {
  display: block;
  color: #ff4757;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  min-height: 1.25rem;
}

.form-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.forgot-link {
  font-size: 0.9rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.forgot-link:hover {
  text-decoration: underline;
}

.checkbox-label {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-top: 2px;
  accent-color: var(--primary-color);
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: var(--text-light);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255,71,87,0.3);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,71,87,0.4);
}

.btn:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--text-gray);
  font-size: 0.875rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  padding: 0 1rem;
  font-weight: 600;
}

.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn-social {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  background: #ffffff;
  color: var(--dark-bg);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-social:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-social i {
  font-size: 1.125rem;
}

.btn-google:hover {
  border-color: #db4437;
  color: #db4437;
}

.btn-facebook:hover {
  border-color: #4267B2;
  color: #4267B2;
}

.extra {
  text-align: center;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.extra a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
}

.extra a:hover {
  text-decoration: underline;
}

/* Loading State */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  
  .auth-left {
    display: none;
  }
  
  .auth-right {
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  body {
    padding: 10px;
  }
  
  .auth-right {
    padding: 1.5rem;
  }
  
  .form-container h2 {
    font-size: 1.5rem;
  }
  
  .form-row,
  .social-login {
    grid-template-columns: 1fr;
  }
  
  .btn-social {
    padding: 1rem;
  }
}

/* Success/Error Animations */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-group.error input {
  animation: shake 0.5s;
}
