/* ============================================
   Login – Clean Minimal Split Layout
   Mobile-first
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Wrapper ---------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* ---------- Left Panel (hidden on mobile) ---------- */
.auth-left {
  display: none;
}

/* ---------- Right Panel (Form) ---------- */
.auth-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 24px 40px;
  background: #fff;
  min-height: 100vh;
}

/* Mobile logo (pinned to top) */
.auth-logo {
  text-align: center;
  padding: 16px 0 0;
  flex-shrink: 0;
}

.auth-logo img {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.auth-form-wrap {
  width: 100%;
  max-width: 380px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form header */
.auth-form-header {
  margin-bottom: 28px;
}

.auth-wrapper .auth-form-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px 0;
}

.auth-wrapper .auth-form-header p {
  font-size: 14px;
  color: #888;
  margin: 0;
}

/* ---------- Form ---------- */
.auth-wrapper .login-form .form-group {
  margin-bottom: 18px;
}

.auth-wrapper .login-form .form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.auth-wrapper .login-form .form-control {
  display: block;
  width: 100%;
  height: 46px;
  font-size: 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-wrapper .login-form .form-control:focus {
  border-color: #ff7100;
  box-shadow: 0 0 0 3px rgba(255, 113, 0, 0.1);
  outline: none;
}

.auth-wrapper .login-form .form-control::placeholder {
  color: #aaa;
}

/* Password field */
.auth-wrapper .password-field {
  position: relative;
}

.auth-wrapper .password-field .form-control {
  padding-right: 42px;
}

.auth-wrapper .password-field .toggle-password {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #aaa;
  cursor: pointer;
  font-size: 15px;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.2s;
}

.auth-wrapper .password-field .toggle-password:hover {
  color: #555;
}

/* Label row */
.auth-wrapper .form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.auth-wrapper .forgot-link {
  font-size: 12px;
  color: #ff7100;
  text-decoration: none;
  font-weight: 500;
}

.auth-wrapper .forgot-link:hover {
  text-decoration: underline;
  color: #e06000;
}

/* Submit button */
.auth-wrapper .btn-login {
  display: block;
  width: 100%;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  border-radius: 8px;
  background-color: #1f1108;
  color: #fff;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.auth-wrapper .btn-login:hover {
  opacity: 0.88;
}

.auth-wrapper .btn-login:active {
  opacity: 0.8;
}

/* Error alerts */
.auth-wrapper .auth-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}

.auth-wrapper .auth-alert .close {
  float: right;
  font-size: 18px;
  line-height: 1;
  color: #c53030;
  opacity: 0.5;
  background: none;
  border: none;
  cursor: pointer;
}

/* Footer */
.auth-wrapper .auth-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 24px;
  font-size: 10px;
  color: #ccc;
}

.auth-wrapper .auth-footer a {
  color: #ccc;
  text-decoration: none;
}

.auth-wrapper .auth-footer a:hover {
  color: #ff7100;
  text-decoration: underline;
}

/* Password recovery modal */
#passwordrecoverymodal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

#passwordrecoverymodal .modal-header {
  border-bottom: none;
  padding: 32px 28px 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#passwordrecoverymodal .recovery-header-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fef7f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

#passwordrecoverymodal .recovery-header-icon i {
  font-size: 22px;
  color: #ff7100;
}

#passwordrecoverymodal .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
}

#passwordrecoverymodal .recovery-subtitle {
  font-size: 13px;
  color: #888;
  margin: 0;
}

#passwordrecoverymodal .modal-body {
  padding: 24px 28px 8px;
}

#passwordrecoverymodal .modal-body label {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

#passwordrecoverymodal .modal-body .form-control {
  height: 46px;
  font-size: 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#passwordrecoverymodal .modal-body .form-control:focus {
  border-color: #ff7100;
  box-shadow: 0 0 0 3px rgba(255, 113, 0, 0.1);
  outline: none;
}

#passwordrecoverymodal .modal-footer {
  border-top: none;
  padding: 16px 28px 28px;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

#passwordrecoverymodal .btn-recovery-send {
  flex: 1;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: #00bf63;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

#passwordrecoverymodal .btn-recovery-send:hover {
  opacity: 0.88;
}

#passwordrecoverymodal .btn-recovery-close {
  flex: 1;
  height: 46px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: #1f1108;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

#passwordrecoverymodal .btn-recovery-close:hover {
  opacity: 0.88;
}

/* ==============================================
   Desktop: 992px+
   ============================================== */
@media (min-width: 992px) {
  .auth-wrapper {
    flex-direction: row;
  }

  .auth-left {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
    min-height: 100vh;
    background: linear-gradient(135deg, #ff7100 0%, #ffde59 50%, #00bf63 100%);
    position: relative;
    overflow: hidden;
  }

  .auth-left img {
    display: block;
    width: 60%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
  }

  .auth-logo {
    display: none;
  }

  .auth-right {
    width: 50%;
    padding: 40px 48px;
    flex-direction: column;
    justify-content: center;
  }

  .auth-form-wrap {
    max-width: 400px;
  }

  .auth-wrapper .auth-form-header h2 {
    font-size: 28px;
  }
}
