/* Login Page Clean CSS */

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Login Main */
.login-main {
  min-height: auto;
  padding: 60px 20px 40px 20px;
  background: #f7f7f7;
  display: flex;
  align-items: center;
}

/* Login Container */
.login-container {
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

/* Login Card */
.login-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #f0f0f0;
  margin-bottom: 24px;
}

/* Login Header */
.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: var(--brand-color, #a50808);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.login-logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #191919;
  margin: 0;
  letter-spacing: -0.02em;
}

/* Member Type Tabs */
.member-type-tabs {
  display: flex;
  gap: 8px;
  background: #f7f7f7;
  border-radius: 12px;
  padding: 4px;
  margin-top: 24px;
}

.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #8b8b8b;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover:not(.active) {
  color: #333333;
}

.tab-btn.active {
  background: white;
  color: #191919;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.tab-btn.active[data-type="corporate"] {
  color: #0066ff;
}

.tab-btn i {
  font-size: 18px;
}

/* Member Info Box */
.member-info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  background: #f7f7f7;
}

.member-info-box.personal {
  background: rgba(var(--brand-color-rgb, 165, 8, 8), 0.08);
}

.member-info-box.corporate {
  background: #f0f6ff;
}

.member-info-box i {
  font-size: 20px;
  flex-shrink: 0;
}

.member-info-box.personal i {
  color: var(--brand-color, #a50808);
}

.member-info-box.corporate i {
  color: #0066ff;
}

.member-info-box p {
  margin: 0 0 4px 0;
  color: #191919;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.member-info-box small {
  display: block;
  color: #737373;
  font-size: 13px;
  line-height: 1.5;
}

/* Form Elements */
.input-wrapper {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  color: #191919;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.input-icon {
  position: absolute;
  left: 16px;
  color: #8b8b8b;
  font-size: 18px;
  pointer-events: none;
  transition: color 0.2s ease;
}

.form-input {
  width: 100%;
  height: 52px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 0 48px;
  font-size: 15px;
  color: #191919;
  background: white;
  transition: all 0.2s ease;
}

.form-input::placeholder {
  color: #b3b3b3;
}

.form-input:focus {
  outline: none;
  border-color: #191919;
}

.form-input:focus ~ .input-icon {
  color: #191919;
}

.toggle-password {
  position: absolute;
  right: 16px;
  background: none;
  border: none;
  color: #8b8b8b;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  transition: color 0.2s ease;
}

.toggle-password:hover {
  color: #191919;
}

/* Login Button */
.login-btn {
  width: 100%;
  height: 52px;
  background: #191919;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
}

.login-btn.corporate-btn {
  background: #0066ff;
}

.login-btn.corporate-btn:hover {
  background: #0052cc;
}

.btn-icon {
  font-size: 18px;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e5e5;
}

.divider span {
  position: relative;
  padding: 0 16px;
  background: white;
  color: #8b8b8b;
  font-size: 13px;
  font-weight: 500;
}

/* Auth Actions */
.auth-actions {
  display: flex;
  gap: 12px;
}

.auth-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  color: #191919;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.auth-btn:hover {
  background: #f7f7f7;
  border-color: #d0d0d0;
}

.auth-btn i {
  font-size: 16px;
}

.auth-btn.corporate-signup {
  color: #0066ff;
  border-color: #0066ff;
}

.auth-btn.corporate-signup:hover {
  background: #f0f6ff;
}

/* Service Benefits */
.service-benefits {
  padding: 40px 32px;
  background: white;
  border-radius: 16px;
  border: 1px solid #f0f0f0;
}

.service-benefits h2 {
  font-size: 20px;
  font-weight: 700;
  color: #191919;
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}

.benefits-grid {
  display: grid;
  gap: 20px;
}

.benefit-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.benefit-card:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.benefit-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--brand-color, #a50808);
}

.benefit-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #191919;
  margin: 0 0 4px 0;
}

.benefit-content p {
  font-size: 14px;
  color: #737373;
  margin: 0;
  line-height: 1.5;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  background: white;
  border-radius: 20px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #191919;
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  background: #f7f7f7;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #e5e5e5;
}

/* Modal Body */
.modal-body {
  padding: 24px;
}

.modal-step {
  display: block;
}

.modal-step.hidden {
  display: none;
}

.step-title {
  text-align: center;
  margin-bottom: 32px;
}

.step-title h3 {
  font-size: 18px;
  font-weight: 700;
  color: #191919;
  margin: 0 0 8px 0;
}

.step-title p {
  font-size: 14px;
  color: #737373;
  line-height: 1.6;
  margin: 0;
}

.modal-input-wrapper {
  margin-bottom: 20px;
}

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

.modal-input-group {
  position: relative;
}

.modal-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8b8b8b;
  font-size: 18px;
}

.modal-form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 48px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s ease;
}

.modal-form-input:focus {
  outline: none;
  border-color: #191919;
}

.modal-btn {
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.modal-btn.primary {
  background: #191919;
  color: white;
}

.modal-btn.primary:hover {
  background: #000000;
}

.modal-btn.secondary {
  background: white;
  color: #191919;
  border: 1px solid #e5e5e5;
}

.modal-btn.secondary:hover {
  background: #f7f7f7;
}

/* Email Sent Card */
.email-sent-card {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.email-icon {
  font-size: 48px;
  color: #00c896;
  margin-bottom: 16px;
}

.email-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: #191919;
  margin: 0 0 8px 0;
}

.sent-email {
  font-size: 15px;
  color: #191919;
  font-weight: 600;
  margin: 8px 0;
}

.email-info {
  font-size: 13px;
  color: #737373;
}

.complete-actions {
  display: flex;
  gap: 12px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .login-main {
    padding: 40px 16px;
  }

  .login-card {
    padding: 32px 24px;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .service-benefits {
    padding: 32px 24px;
    border-radius: 0;
    border: none;
    border-top: 1px solid #f0f0f0;
  }

  .member-type-tabs {
    gap: 4px;
    padding: 3px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .member-info-box {
    padding: 12px;
  }

  .member-info-box p {
    font-size: 13px;
  }

  .member-info-box small {
    font-size: 12px;
  }

  .form-input {
    height: 48px;
    font-size: 16px;
  }

  .login-btn {
    height: 48px;
    font-size: 15px;
  }
}

/* Login Error/Success Messages */
.login-error-message,
.login-success-message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  animation: slideDown 0.3s ease;
}

.login-error-message {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.login-error-message i {
  font-size: 18px;
  flex-shrink: 0;
}

.login-success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.login-success-message i {
  font-size: 18px;
  flex-shrink: 0;
}

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