/* Authentication Pages Styling */

.auth-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
  max-width: 500px;
  width: 100%;
}

.auth-card-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-card-header h2 {
  color: #333;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
}

.auth-card-header p {
  color: #666;
  font-size: 14px;
}

.auth-form .form-group {
  margin-bottom: 20px;
}

.auth-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
}

.auth-form .form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.auth-form .form-control:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.auth-form .form-control.is-invalid {
  border-color: #dc3545;
}

.auth-form .form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.auth-form .text-danger {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.auth-form .form-check {
  margin-bottom: 20px;
}

.auth-form .form-check-input {
  margin-top: 4px;
}

.auth-form .form-check-label {
  font-size: 14px;
  color: #666;
  margin-left: 5px;
}

.btn-auth-primary {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-auth-primary:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-auth-primary:active {
  transform: translateY(0);
}

.btn-auth-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Social Login Buttons */
.social-login-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.social-login-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
}

.social-login-divider span {
  background: white;
  padding: 0 15px;
  color: #666;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.social-login-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-social {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: white;
}

.btn-social:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-social-google {
  color: #333;
}

.btn-social-google:hover {
  border-color: #4285f4;
  background: #f8f9fa;
}

.btn-social-facebook {
  color: #333;
}

.btn-social-facebook:hover {
  border-color: #1877f2;
  background: #f8f9fa;
}

.btn-social svg,
.btn-social img {
  width: 20px;
  height: 20px;
}

/* Auth Links */
.auth-links {
  text-align: center;
  margin-top: 20px;
}

.auth-links a {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.auth-links a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.auth-links .separator {
  margin: 0 10px;
  color: #ddd;
}

/* Alert Messages */
.alert-auth {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-auth-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-auth-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-auth-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Profile Page */
.profile-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.profile-header {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f0f0f0;
}

.profile-avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  font-weight: 600;
}

.profile-info h2 {
  margin: 0 0 10px 0;
  color: #333;
}

.profile-info .profile-meta {
  color: #666;
  font-size: 14px;
}

.profile-info .profile-meta span {
  margin-right: 20px;
}

.profile-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.profile-card h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 20px;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
  height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.password-strength-weak {
  width: 33%;
  background: #dc3545;
}

.password-strength-medium {
  width: 66%;
  background: #ffc107;
}

.password-strength-strong {
  width: 100%;
  background: #28a745;
}

.password-strength-text {
  font-size: 12px;
  margin-top: 5px;
  color: #666;
}

/* Responsive Design */
@media (max-width: 576px) {
  .auth-card {
    padding: 30px 20px;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .social-login-buttons {
    gap: 10px;
  }
}

/* Avatar Upload Styles */
.avatar-upload-container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.avatar-preview {
  flex-shrink: 0;
}

.avatar-preview img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  border: 3px solid #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.avatar-upload-controls {
  flex: 1;
}

.avatar-upload-controls .form-control {
  margin-bottom: 5px;
}

.avatar-upload-controls small {
  display: block;
  color: #6c757d;
  font-size: 0.875rem;
}

/* Profile Avatar Display */
.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-avatar-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3.5rem;
  font-weight: 600;
  border: 4px solid #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Avatar Cropping Modal */
.crop-container {
  max-height: 500px;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.crop-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.crop-controls .btn {
  min-width: 100px;
}

#avatarCropModal .modal-body {
  padding: 20px;
}

#avatarCropModal .modal-lg {
  max-width: 800px;
}
