/* auth-styles.css - AMRIC shared styles for login and registration pages (mobile-first) */

/* Auth Container */
.auth-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px;
  min-height: calc(100vh - 300px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.auth-container h1 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 20px;
  color: #2E7D32;
  position: relative;
}

.auth-container h1:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, #2E7D32, #F9A825);
  margin: 12px 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: 24px;
  position: relative;
}

/* Card Decoration — origin & leaf motifs (AMRIC agribusiness theme) */
.auth-card::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  background-image: url('../images/leaf-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: 70px;
  height: 70px;
  background-image: url('../images/cocoa-pod-silhouette.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.04;
  z-index: 0;
}

/* Card Header */
.auth-header {
  padding: 20px 20px 12px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.auth-header h2 {
  font-size: 1.3rem;
  color: #2E7D32;
  margin: 0 0 8px;
}

.auth-header p {
  color: #777;
  font-size: 0.9rem;
  margin: 0;
}

/* Card Body */
.auth-body {
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* Form Styles */
.form-auth {
  position: relative;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #444;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #2E7D32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
  outline: none;
}

.form-group .input-icon {
  position: absolute;
  right: 14px;
  top: 38px;
  color: #aaa;
  transition: color 0.3s ease;
}

.form-group input:focus + .input-icon {
  color: #2E7D32;
}

.form-group.password-toggle {
  position: relative;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 38px;
  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.8rem;
  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: #F9A825;
  width: 50%;
}

.strong {
  background-color: #2E7D32;
  width: 100%;
}

.password-feedback {
  font-size: 0.78rem;
  margin-top: 5px;
  color: #666;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, #2E7D32, #6D4C41);
  color: white;
  box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3);
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(46, 125, 50, 0.4);
}

.btn-outline {
  background: transparent;
  color: #2E7D32;
  border: 1px solid #2E7D32;
}

.btn-outline:hover {
  background: #2E7D32;
  color: white;
}

/* Other Form Elements */
.form-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

.form-footer a {
  color: #2E7D32;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.form-footer a:hover {
  color: #F9A825;
  text-decoration: underline;
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #999;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #eaeaea;
}

.form-divider::before {
  margin-right: 12px;
}

.form-divider::after {
  margin-left: 12px;
}

/* Social Login Buttons */
.social-login {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  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.1rem;
}

.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: 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.auth-message i {
  margin-right: 10px;
  font-size: 1.15rem;
}

.success-message {
  background-color: #E8F5E9;
  color: #2E7D32;
  border-left: 4px solid #2E7D32;
}

.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: 18px;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  accent-color: #2E7D32;
}

.form-checkbox label {
  margin: 0;
  flex-grow: 1;
}

/* Forgot Password Link */
.forgot-password {
  text-align: right;
  margin-bottom: 18px;
}

.forgot-password a {
  color: #2E7D32;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #F9A825;
  text-decoration: underline;
}

/*--------------------------------------------------------------
# Responsive Adjustments — scale up from mobile base
--------------------------------------------------------------*/
@media (min-width: 480px) {
  .social-login {
    flex-wrap: nowrap;
  }
}

@media (min-width: 577px) {
  .auth-container {
    padding: 40px 20px;
  }

  .auth-container h1 {
    font-size: 2.2rem;
  }

  .auth-container h1:after {
    width: 70px;
    height: 3px;
    margin: 15px auto 0;
  }

  .auth-header {
    padding: 25px 30px 15px;
  }

  .auth-header h2 {
    font-size: 1.5rem;
  }

  .auth-header p {
    font-size: 0.95rem;
  }

  .auth-body {
    padding: 30px;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-group label {
    font-size: 0.95rem;
  }

  .form-group input {
    padding: 12px 15px;
  }

  .form-group .input-icon,
  .password-toggle-btn {
    top: 40px;
    right: 15px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .social-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}