/* Authentication Styles - Desktop Optimized */

/* Authentication Container */
.signin-view,
.signup-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 1rem;
}

.auth-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  width: 100%;
  max-width: 450px;
  position: relative;
}

/* Authentication Header */
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-header h1 {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: #7f8c8d;
  font-size: 1rem;
  margin: 0;
}

/* Authentication Form */
.auth-form {
  margin-bottom: 2rem;
}

.auth-form .form-group {
  margin-bottom: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #34495e;
  font-size: 0.9rem;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  transform: translateY(-1px);
}

.auth-form input.error,
.auth-form select.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

/* Authentication Button */
.auth-btn {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: none;
}

.auth-btn.primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.auth-btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2980b9, #1f5f8b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.auth-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Field Errors */
.field-error {
  color: #e74c3c;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.field-hint {
  color: #7f8c8d;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Error Messages */
.error-message {
  background: #fdf2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.error-message.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

/* Authentication Footer */
.auth-footer {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e1e8ed;
}

.auth-footer p {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0;
}

.auth-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #2980b9;
  text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
}

.loading-overlay .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Desktop Specific Styles */
@media (min-width: 768px) {
  .auth-container {
    padding: 4rem;
    max-width: 500px;
  }
  
  .auth-header h1 {
    font-size: 2.5rem;
  }
  
  .auth-form input,
  .auth-form select {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
  }
  
  .auth-btn {
    padding: 1.25rem;
    font-size: 1.1rem;
  }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
  .signin-view,
  .signup-view {
    padding: 3rem 2rem;
  }
  
  .auth-container {
    max-width: 550px;
    padding: 5rem;
  }
}

/* Prevent stretching on very wide screens */
@media (min-width: 1600px) {
  .auth-container {
    max-width: 600px;
  }
}

/* Mobile Responsive */
@media (max-width: 767px) {
  .signin-view,
  .signup-view {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .auth-container {
    padding: 2rem;
    margin-top: 1rem;
  }
  
  .auth-header h1 {
    font-size: 1.75rem;
  }
}