/* MineHubX - Enhanced Authentication Pages Styles */

/* Base Styles */
body {
  font-family: 'Poppins', sans-serif;
}

/* Auth Container */
.auth-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 3rem auto;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

/* Auth Card */
.auth-card {
  padding: 3rem;
  background-color: var(--bg-secondary);
  display: flex;
  flex-direction: column;
}

/* Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
  background: linear-gradient(135deg, #4caf50, #2196f3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Auth Form */
.auth-form {
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.input-with-icon {
  position: relative;
  transition: all 0.3s ease;
}

.input-with-icon i {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.input-with-icon input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.5rem;
  border-radius: 12px;
  border: 2px solid var(--border-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-with-icon input:focus {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.toggle-password {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  font-size: 1.2rem;
}

.toggle-password:hover {
  color: var(--text-primary);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 0.5rem;
  width: 18px;
  height: 18px;
}

.remember-me label {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.forgot-password {
  font-size: 0.95rem;
  color: #4caf50;
  font-weight: 600;
  transition: all 0.2s;
}

.forgot-password:hover {
  color: #2e7d32;
  text-decoration: underline;
}

.form-error {
  color: var(--danger);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 20px;
  text-align: center;
  font-weight: 500;
}

.form-success {
  color: #4caf50;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  min-height: 20px;
  text-align: center;
  font-weight: 500;
}

/* Enhanced Buttons */
.btn-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #4caf50, #2196f3);
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
}

.btn-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-block:hover::before {
  left: 100%;
}

.btn-loader {
  display: none;
}

.btn.loading .btn-text {
  display: none;
}

.btn.loading .btn-loader {
  display: block;
}

.spinner-small {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

/* Auth Divider */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.auth-divider span {
  padding: 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

/* Social Login */
.social-login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 56px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--border-color);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

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

.btn-google {
  color: #db4437;
  border-color: rgba(219, 68, 55, 0.3);
}

.btn-google:hover {
  background-color: #db4437;
  color: white;
  border-color: #db4437;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(219, 68, 55, 0.2);
}

.btn-discord {
  color: #5865F2;
  border-color: rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  background-color: #5865F2;
  color: white;
  border-color: #5865F2;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(88, 101, 242, 0.2);
}

.btn-github {
  color: #333333;
  border-color: rgba(51, 51, 51, 0.3);
}

.btn-github:hover {
  background-color: #333333;
  color: white;
  border-color: #333333;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(51, 51, 51, 0.2);
}

.btn-phone {
  color: #4caf50;
  border-color: rgba(76, 175, 80, 0.3);
}

.btn-phone:hover {
  background-color: #4caf50;
  color: white;
  border-color: #4caf50;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(76, 175, 80, 0.2);
}

/* Auth Footer */
.auth-footer {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: auto;
  padding-top: 1.5rem;
}

.auth-footer a {
  color: #4caf50;
  font-weight: 600;
  transition: all 0.2s;
}

.auth-footer a:hover {
  color: #2e7d32;
  text-decoration: underline;
}

/* Auth Image */
.auth-image {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../assets/images/auth-bg.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  position: relative;
}

.auth-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #4caf50 0%, transparent 100%);
  opacity: 0.7;
}

.auth-image-content {
  position: relative;
  z-index: 1;
  color: white;
  text-align: center;
}

.auth-image-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.auth-image-content p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.6;
}

.auth-features {
  list-style: none;
  text-align: left;
  max-width: 350px;
  margin: 0 auto;
}

.auth-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.auth-features i {
  color: #4caf50;
  margin-right: 1rem;
  font-size: 1.3rem;
  background: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .auth-container {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .auth-image {
    display: none;
  }

  .auth-card {
    padding: 2.5rem;
  }
}

@media (max-width: 768px) {
  .social-login {
    grid-template-columns: 1fr;
  }

  .auth-header h1 {
    font-size: 2rem;
  }

  .auth-header p {
    font-size: 1rem;
  }

  .auth-card {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .btn-block, .btn-social {
    height: 50px;
  }
}
