/* ========================================
   AUTHENTICATION PAGES - MODERN DESIGN
   ======================================== */

.auth-main {
  min-height: 100vh;
  background: var(--y-color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 1rem;
  position: relative;
  overflow: hidden;
}

.auth-container {
  width: 100%;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.auth-card {
  background: var(--y-color-bg);
  border-radius: 20px;
  border: 1px solid rgba(108, 164, 161, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.auth-header {
  text-align: center;
  padding: 4rem 3rem 3rem;
  background: transparent;
  border-bottom: 1px solid rgba(108, 164, 161, 0.2);
}

.auth-logo {
  margin-bottom: 2rem;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--y-color-primary);
  font-family: 'Cairo', sans-serif;
}

.auth-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin: 0 0 1rem 0;
  font-family: 'Cairo', sans-serif;
}

.auth-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  margin: 0;
  line-height: 1.5;
}

.auth-content {
  padding: 4rem 4rem;
}

/* Messages */
.auth-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.auth-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.auth-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.auth-message i {
  font-size: 1.2rem;
}

.error-list div {
  margin-bottom: 0.25rem;
}

.error-list div:last-child {
  margin-bottom: 0;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #e9ecef;
  margin-bottom: 0.5rem;
}

.form-label i {
  color: var(--y-color-primary);
  font-size: 1.2rem;
}

.form-input {
  width: 100%;
  padding: 1.5rem 2rem;
  border: 2px solid rgba(108, 164, 161, 0.2);
  border-radius: 12px;
  background: rgba(40, 40, 40, 0.8);
  color: white;
  font-size: 1.2rem;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus {
  outline: none;
  border-color: var(--y-color-primary);
  background: rgba(32, 32, 32, 0.9);
  box-shadow: 0 0 0 3px rgba(108, 164, 161, 0.1);
}

.form-input::placeholder {
  color: #888;
}

/* Checkbox Styles */
.checkbox-group {
  margin: 0.5rem 0;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #e9ecef;
  font-weight: 500;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(108, 164, 161, 0.3);
  border-radius: 6px;
  background: rgba(32, 32, 32, 0.8);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--y-color-primary);
  border-color: var(--y-color-primary);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.terms-link {
  color: var(--y-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.terms-link:hover {
  text-decoration: underline;
}

/* Social Login Styling - Removed */

/* Button Styles */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 3rem;
  border: none;
  border-radius: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.auth-btn.primary {
  background: var(--y-color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(108, 164, 161, 0.3);
}

.auth-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 164, 161, 0.4);
}

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

.auth-btn i {
  font-size: 1.3rem;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(108, 164, 161, 0.3);
}

.auth-divider span {
  color: #888;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Social Login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border: 2px solid rgba(108, 164, 161, 0.2);
  border-radius: 12px;
  background: rgba(40, 40, 40, 0.8);
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover {
  border-color: var(--y-color-primary);
  background: rgba(108, 164, 161, 0.1);
  transform: translateY(-2px);
}

.social-btn.google:hover {
  border-color: #db4437;
  background: rgba(219, 68, 55, 0.1);
}

.social-btn.facebook:hover {
  border-color: #4267B2;
  background: rgba(66, 103, 178, 0.1);
}

.social-btn i {
  font-size: 1.2rem;
}

/* Footer */
.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(108, 164, 161, 0.2);
}

.auth-switch {
  color: #ccc;
  font-size: 0.95rem;
  margin: 0 0 1rem 0;
}

.auth-link {
  color: var(--y-color-primary);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

.forgot-password {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--y-color-primary);
}

/* Decoration */
/* Decorative shapes removed for cleaner single-background design */

/* Responsive Design */
@media (max-width: 768px) {
  .auth-main {
    padding: 100px 1rem;
  }
  
  .auth-container {
    max-width: 100%;
  }
  
  .auth-header {
    padding: 3rem 2rem 2rem;
  }
  
  .auth-content {
    padding: 3rem 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .logo-text {
    font-size: 2rem;
  }
  
  .auth-title {
    font-size: 1.75rem;
  }
  
  .social-login {
    gap: 1rem;
  }
  
  .social-btn {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
  }
  
  .form-input {
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
  }
  
  .auth-btn {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .auth-main {
    padding: 100px 0.5rem;
  }
  
  .auth-header {
    padding: 2.5rem 1.5rem 2rem;
  }
  
  .auth-content {
    padding: 2.5rem 1.5rem;
  }
  
  .form-input {
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
  }
  
  .auth-btn {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
  }
  
  .logo-text {
    font-size: 2rem;
  }
  
  .auth-title {
    font-size: 1.75rem;
  }
  
  .social-btn {
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
  }
}

/* Loading States */
.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.auth-btn.loading {
  position: relative;
}

.auth-btn.loading span {
  opacity: 0;
}

.auth-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
.form-input:focus,
.auth-btn:focus,
.checkbox-label:focus-within {
  outline: 2px solid var(--y-color-primary);
  outline-offset: 2px;
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

/* Custom Scrollbar */
.auth-card::-webkit-scrollbar {
  width: 6px;
}

.auth-card::-webkit-scrollbar-track {
  background: rgba(26, 42, 42, 0.5);
  border-radius: 3px;
}

.auth-card::-webkit-scrollbar-thumb {
  background: var(--y-color-primary);
  border-radius: 3px;
}

.auth-card::-webkit-scrollbar-thumb:hover {
  background: var(--y-color-secondary);
}