/* ==========================================================================
   KEYSHU LOGIN & REGISTER PAGE - PREMIUM STYLES
   ========================================================================== */

.login-page-body {
  background-color: #f8fafc;
  font-family: 'Quicksand', sans-serif;
  color: #334155;
  margin: 0;
  padding: 0;
}

.login-main-container {
  max-width: 1200px;
  margin: 60px auto 100px;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Auth Card */
.auth-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  width: 100%;
  max-width: 500px;
  padding: 40px 35px;
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.auth-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #03B0B1, #e53935);
  transition: all 0.3s ease;
}

.auth-card.register-mode::before {
  background: linear-gradient(90deg, #e53935, #ff5252);
}

/* Tabs Navigation */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 30px;
}

.auth-tab-btn {
  flex: 1;
  background: none;
  border: none;
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #94a3b8;
  padding: 12px 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  text-align: center;
}

.auth-tab-btn:hover {
  color: #334155;
}

.auth-tab-btn.active {
  color: #03B0B1;
}

.auth-tab-btn.active.reg-tab {
  color: #e53935;
}

/* Active indicator line */
.auth-tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: transparent;
  transition: all 0.3s ease;
  transform: scaleX(0);
}

.auth-tab-btn.active::after {
  background-color: #03B0B1;
  transform: scaleX(1);
}

.auth-tab-btn.active.reg-tab::after {
  background-color: #e53935;
  transform: scaleX(1);
}

/* Form Container */
.auth-form-wrap {
  position: relative;
}

.auth-form {
  display: none;
  animation: fadeInForm 0.4s ease forwards;
}

.auth-form.active {
  display: block;
}

@keyframes fadeInForm {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input Fields */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.input-field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #94a3b8;
  font-size: 16px;
}

.auth-input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Quicksand', sans-serif;
  font-size: 14px;
  color: #1e293b;
  background-color: #ffffff;
  outline: none;
  transition: all 0.3s ease;
}

.auth-input:focus {
  border-color: #03B0B1;
  box-shadow: 0 0 0 4px rgba(3, 176, 177, 0.1);
}

.auth-card.register-mode .auth-input:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 4px rgba(229, 57, 53, 0.1);
}

/* Password Toggle Icon */
.password-toggle-btn {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: #475569;
}

/* Extra Form Actions (Remember me, forgot password) */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  margin-bottom: 24px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #64748b;
  font-weight: 500;
}

.remember-me input[type="checkbox"] {
  accent-color: #03B0B1;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.auth-card.register-mode .remember-me input[type="checkbox"] {
  accent-color: #e53935;
}

.forgot-password-link {
  color: #03B0B1;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: #028e90;
  text-decoration: underline;
}

/* Submit Buttons */
.auth-submit-btn {
  width: 100%;
  font-family: 'Quicksand', sans-serif;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-login {
  background: linear-gradient(135deg, #03B0B1, #028e90);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(3, 176, 177, 0.2);
}

.btn-login:hover {
  background: linear-gradient(135deg, #028e90, #027a7c);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(3, 176, 177, 0.3);
}

.btn-register {
  background: linear-gradient(135deg, #e53935, #d32f2f);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.2);
}

.btn-register:hover {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.3);
}

/* Social Login Divider */
.social-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
  margin: 30px 0 20px;
  letter-spacing: 0.5px;
}

.social-divider::before, .social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #f1f5f9;
}

.social-divider:not(:empty)::before {
  margin-right: 12px;
}

.social-divider:not(:empty)::after {
  margin-left: 12px;
}

/* Social Buttons */
.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.social-btn.facebook-btn i {
  color: #1877f2;
  font-size: 16px;
}

.social-btn.google-btn img {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 30px 20px;
  }
  
  .auth-tabs {
    margin-bottom: 24px;
  }
  
  .auth-tab-btn {
    font-size: 15px;
    padding: 10px 5px;
  }
  
  .social-buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
