/* auth-styles.css - Shared styles for login and registration pages */

/* Auth Container */
.auth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 300px); /* Adjust based on your header/footer height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-container h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 30px;
  color: #4e3b6a;
  position: relative;
}

.auth-container h1:after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: linear-gradient(to right, #f78fb3, #b197fc);
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Auth Card */
.auth-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  padding: 0;
  margin-bottom: 30px;
  position: relative;
}

/* Card Decoration - Paw Prints */
.auth-card::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 60px;
  height: 60px;
  background-image: url('../images/paw-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.auth-card::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 80px;
  height: 80px;
  background-image: url('../images/cat-silhouette.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.04;
  z-index: 0;
}

/* Card Header */
.auth-header {
  padding: 25px 30px 15px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.auth-header h2 {
  font-size: 1.5rem;
  color: #4e3b6a;
  margin: 0 0 10px;
}

.auth-header p {
  color: #777;
  font-size: 0.95rem;
  margin: 0;
}

/* Card Body */
.auth-body {
  padding: 30px;
  position: relative;
  z-index: 1;
}

/* Form Styles */
.form-auth {
  position: relative;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #b197fc;
  box-shadow: 0 0 0 3px rgba(177, 151, 252, 0.2);
  outline: none;
}

.form-group .input-icon {
  position: absolute;
  right: 15px;
  top: 40px;
  color: #aaa;
  transition: color 0.3s ease;
}

.form-group input:focus + .input-icon {
  color: #b197fc;
}

.form-group.password-toggle {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 15px;
  top: 40px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 0;
  font-size: 1rem;
}

.password-toggle-btn:hover {
  color: #777;
}

.password-toggle-btn:focus {
  outline: none;
}

.form-group .field-hint {
  font-size: 0.85rem;
  color: #888;
  margin-top: 5px;
}

.password-strength {
  height: 4px;
  margin-top: 8px;
  border-radius: 2px;
  background: #f0f0f0;
  overflow: hidden;
}

.password-strength-meter {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.weak {
  background-color: #ff6b6b;
  width: 25%;
}

.medium {
  background-color: #feca57;
  width: 50%;
}

.strong {
  background-color: #1dd1a1;
  width: 100%;
}

.password-feedback {
  font-size: 0.8rem;
  margin-top: 5px;
  color: #666;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, #f78fb3, #b197fc);
  color: white;
  box-shadow: 0 4px 10px rgba(177, 151, 252, 0.3);
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(177, 151, 252, 0.4);
}

.btn-outline {
  background: transparent;
  color: #4e3b6a;
  border: 1px solid #4e3b6a;
}

.btn-outline:hover {
  background: #4e3b6a;
  color: white;
}

/* Other Form Elements */
.form-footer {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95rem;
  color: #666;
}

.form-footer a {
  color: #b197fc;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-footer a:hover {
  color: #f78fb3;
  text-decoration: underline;
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 25px 0;
  color: #999;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eaeaea;
}

.form-divider::before {
  margin-right: 15px;
}

.form-divider::after {
  margin-left: 15px;
}

/* Social Login Buttons */
.social-login {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  color: #555;
  font-size: 1.2rem;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.facebook {
  color: #3b5998;
}

.social-btn.google {
  color: #db4437;
}

.social-btn.twitter {
  color: #1da1f2;
}

/* Message Styles */
.auth-message {
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.auth-message i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.success-message {
  background-color: #e6f4ea;
  color: #0d6832;
  border-left: 4px solid #0d6832;
}

.error-message {
  background-color: #fae0e0;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.info-message {
  background-color: #e3f2fd;
  color: #0d47a1;
  border-left: 4px solid #0d47a1;
}

/* Animation Effects */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Remember Me Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.form-checkbox label {
  margin: 0;
  flex-grow: 1;
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin-bottom: 20px;
}

.forgot-password a {
  color: #b197fc;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #f78fb3;
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 576px) {
  .auth-card {
    width: 100%;
    padding: 0;
  }
  
  .auth-header {
    padding: 20px 20px 10px;
  }
  
  .auth-body {
    padding: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  
  .auth-container h1 {
    font-size: 1.8rem;
  }
}